mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
add test for isnullorwhitespace
This commit is contained in:
@@ -78,5 +78,18 @@ namespace ICD.Common.Utils.Tests
|
|||||||
{
|
{
|
||||||
Assert.AreEqual(0x67, StringUtils.FromIpIdString("0x67"));
|
Assert.AreEqual(0x67, StringUtils.FromIpIdString("0x67"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[UsedImplicitly]
|
||||||
|
[TestCase(null, true)]
|
||||||
|
[TestCase("", true)]
|
||||||
|
[TestCase("\n", true)]
|
||||||
|
[TestCase("\r", true)]
|
||||||
|
[TestCase("Test", false)]
|
||||||
|
[TestCase("Test\n", false)]
|
||||||
|
[TestCase("\nTest", false)]
|
||||||
|
public void IsNullOrWhitespaceTest(string value, bool expectedResult)
|
||||||
|
{
|
||||||
|
Assert.AreEqual(StringUtils.IsNullOrWhitespace(value), expectedResult);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user