UlrichFreiberg / STF

Simple Test Framework - a framework for frameworks
3 stars 0 forks source link

Question: PadRight. clarifications of contract #83

Open brobinsondk opened 3 years ago

brobinsondk commented 3 years ago
  1. If totalWidth is null or empty ... return null ?
  2. if padding Char is null or empty ... null or default paddingCHar to space
  3. if Totalwidth is less than length of source, return null or substring ?
brobinsondk commented 3 years ago

Suggested answer as per https://docs.microsoft.com/en-us/dotnet/api/system.string.padright?view=net-5.0

  1. null
  2. default to SPACE as per C# padRight function
  3. null