public void Test3() { // Arrange var testString = new string(' ', new Random().Next(1, int.MaxValue / 2)); // Act var isNullOrWhitespace = CustomString.IsNullOrWhiteSpace(testString); // Assert Assert.IsTrue(isNullOrWhitespace, "property x wasn't expected value"); }
public void Test1(string input, bool expected) { // Arrange string testString = null; // Act var isNullOrWhitespace = CustomString.IsNullOrWhiteSpace(input); // Assert Assert.IsTrue(expected); }
public void Test7() { Assert.IsFalse(CustomString.IsNullOrWhiteSpace("a")); }
public void Test6() { Assert.IsTrue(CustomString.IsNullOrWhiteSpace("\r")); }
public void TabShouldBeWhitespace() { Assert.IsTrue(CustomString.IsNullOrWhiteSpace("\t")); }