Beispiel #1
0
        public static void Main(string[] args)
        {
            var tests = new EnumerableMatcherTests();
            try
            {
                tests.ToContain_UsesEqualityMatcher();
            }
            catch (ExpectationException)
            { }

            try
            {
                tests.ToContainInOrder_WhenTrue_ReturnsTrue();
            }
            catch (ExpectationException)
            { }

            try
            {
                tests.ToContain_WhenExpectedNotInEnumerable_Throws();
            }
            catch (ExpectationException)
            {

            }

            try
            {
                new ExpectBetterTests.Collections.CountingBagTests().Add_IncrementsDuplicateCount();
            }
            catch (ExpectationException)
            {

            }
        }
Beispiel #2
0
        public static void Main(string[] args)
        {
            var tests = new EnumerableMatcherTests();

            try
            {
                tests.ToContain_UsesEqualityMatcher();
            }
            catch (ExpectationException)
            { }

            try
            {
                tests.ToContainInOrder_WhenTrue_ReturnsTrue();
            }
            catch (ExpectationException)
            { }

            try
            {
                tests.ToContain_WhenExpectedNotInEnumerable_Throws();
            }
            catch (ExpectationException)
            {
            }

            try
            {
                new ExpectBetterTests.Collections.CountingBagTests().Add_IncrementsDuplicateCount();
            }
            catch (ExpectationException)
            {
            }
        }