public void Handle(Action <T> action)
 {
     _parentAssertion.Handle(x => action(_transformation(x)));
 }
예제 #2
0
 public void Handle(Action <IEnumerable <T> > handlerAction)
 {
     _parent.Handle(handlerAction);
 }
예제 #3
0
        public static IAssertion <T> IsNull <T>(this IAssertion <T> assertion)
        {
            assertion.Handle(x => Assert.IsNull(x));

            return(assertion);
        }
예제 #4
0
        public static IAssertion <IEnumerable <T> > NotEmpty <T>(this IAssertion <IEnumerable <T> > assertion)
        {
            assertion.Handle(Assert.IsNotEmpty);

            return(assertion);
        }
예제 #5
0
        public static IAssertion <T> EqualTo <T>(this IAssertion <T> assertion, T value)
        {
            assertion.Handle(x => Assert.AreEqual(value, x));

            return(assertion);
        }