mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-13 03:35:04 +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"));
|
||||
}
|
||||
|
||||
[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