Thursday, March 14, 2019

Question: Unit tests for .NET composite format strings

I'm writing a function to parse .NET composite format strings. Does anyone know where I could find a suite of (valid or invalid) format strings I could use as the basis for unit tests of this function?

The .NET Core tests that I could find seem very limited, only checking if the format is null or if the index arguments are out of range. I am interested in checking other things as well:

  • variations in whitespace within the braces
  • presence / absence of alignment and item format elements
  • brace escaping
Question: Unit tests for .NET composite format strings Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team