コード例 #1
0
            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)));
 }
コード例 #3
0
            public TestFailure Invoke()
            {
                var ec = ExpectationCommand.Of(() => (T)null);

                return(ec.Should((ITestMatcher <T>)_data.Matcher));
            }
コード例 #4
0
 static Expectation <IEnumerable <string> > CreateData1(IEnumerable <string> data)
 {
     return(new Expectation <IEnumerable <string> >(ExpectationCommand.Of(() => data)));
 }
コード例 #5
0
 static IEnumerableExpectation <int> CreateData1(IEnumerable <int> data)
 {
     return(new EnumerableExpectation <int>(ExpectationCommand.Of(() => data)));
 }
コード例 #6
0
 static IEnumerableExpectation CreateData(IEnumerable data)
 {
     return(new EnumerableExpectation(ExpectationCommand.Of(() => data)));
 }