Ejemplo n.º 1
0
        public void AssertMapContains()
        {
            Dictionary <String, String> haystack = new Dictionary <string, string>()
            {
                { "needle", "value" }
            };

            POITestCase.AssertContains(haystack, "needle");
            // FIXME: test failing case
        }
Ejemplo n.º 2
0
        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
             * }*/
        }