public void test2() { var z = new ZipCodeService(); int[] result = z.SlashZipCode("333 77"); Assert.AreEqual(333, result[0]); Assert.AreEqual(77, result[1]); }
public void test3(string badZip) { var z = new ZipCodeService(); Assert.ThrowsException <ArgumentException>(() => z.SlashZipCode(badZip) ); }
public void test1() { var z = new ZipCodeService(); int[] result = z.SlashZipCode("111 22"); Assert.AreEqual(111, result[0]); Assert.AreEqual(22, result[1]); }