public void AssertMapContains() { Dictionary <String, String> haystack = new Dictionary <string, string>() { { "needle", "value" } }; POITestCase.AssertContains(haystack, "needle"); // FIXME: test failing case }
public void AssertContains() { POITestCase.AssertContains("There is a needle in this haystack", "needle"); /*try { * POITestCase.AssertContains("There is gold in this haystack", "needle"); * Assert.Fail("found a needle"); * } catch (final junit.framework.AssertFailedException e) { * // expected * }*/ }