public void TestIsCurrencyValidTrue() { bool expected = true; string[] testData = { "ABC/EFG", "HIJ/KLM", "NOP/QRS", "TUV/WXY", "ZUS/SEK", "AAA/BBB", "CCC/DDD" }; foreach (string data in testData) { var actual = RegexLib.IsCurrencyValid(data); Assert.AreEqual(expected, actual); } }
public void TestIsCurrencyValidFalse() { bool expected = false; string[] testData = { "ABC//EFG", "KEP/", "", " ", " / ", "ABCD/EFG", "BCD/WZYL", "abc/def", "EURDKK", "//////" }; foreach (string data in testData) { var actual = RegexLib.IsCurrencyValid(data); Assert.AreEqual(expected, actual); } }