public static void ParseZeroStringAsFalse(string s) => Assert.False(BooleanStringConverter.Parse(s));
public static void ParseNonZeroStringAsTrue(string s) => Assert.True(BooleanStringConverter.Parse(s));
public static void ParsePositiveAnswerStringAsTrue(string s) => Assert.True(BooleanStringConverter.Parse(s));
public static void ParseNegativeAnswerStringAsFalse(string s) => Assert.False(BooleanStringConverter.Parse(s));
public static void ParseStaticFalseString() => Assert.False(BooleanStringConverter.Parse(bool.FalseString));
public static void ParseUppercaseFalseString() => Assert.False(BooleanStringConverter.Parse(bool.FalseString.ToUpperInvariant()));
public static void ParseTrueString(string s) => Assert.True(BooleanStringConverter.Parse(s));
public static void ThrowsArgumentExceptionAnyUnrecognizedString(string s) => Assert.Throws <FormatException>(() => BooleanStringConverter.Parse(s));
public static void ParseNullStringAsFalse() => Assert.False( BooleanStringConverter.Parse(null));
public static void ParseWhiteSpaceSurroundedStringAsFalse(string s) { Assert.All(whiteSpace.SelectMany(ws => GetWhiteSpaceSurrounded(ws, s)), t => Assert.False(BooleanStringConverter.Parse(t))); }
public static void ParseStaticTrueString() => Assert.True(BooleanStringConverter.Parse(bool.TrueString));