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

            return(assertion);
        }
Exemplo n.º 4
0
        public static IAssertion <IEnumerable <T> > NotEmpty <T>(this IAssertion <IEnumerable <T> > assertion)
        {
            assertion.Handle(Assert.IsNotEmpty);

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

            return(assertion);
        }