public TestFailure InvokeWithValidation()
            {
                var ec = ExpectationCommand.Of(() => (T)null);
                var m  = ((ITestMatcherValidations)_data.Matcher).AllowingNullActualValue();

                return(ec.Should((ITestMatcher <T>)m));
            }
示例#2
0
 static Expectation <string> CreateData1(string data)
 {
     return(new Expectation <string>(ExpectationCommand.Of(() => data)));
 }
            public TestFailure Invoke()
            {
                var ec = ExpectationCommand.Of(() => (T)null);

                return(ec.Should((ITestMatcher <T>)_data.Matcher));
            }
 static Expectation <IEnumerable <string> > CreateData1(IEnumerable <string> data)
 {
     return(new Expectation <IEnumerable <string> >(ExpectationCommand.Of(() => data)));
 }
 static IEnumerableExpectation <int> CreateData1(IEnumerable <int> data)
 {
     return(new EnumerableExpectation <int>(ExpectationCommand.Of(() => data)));
 }
 static IEnumerableExpectation CreateData(IEnumerable data)
 {
     return(new EnumerableExpectation(ExpectationCommand.Of(() => data)));
 }