Ejemplo n.º 1
0
 public IEnumerable <Test> test_double_negation()
 {
     return
         (ParameterizedTestBuilder
          .Case(true)
          .Case(false)
          .Run(value => value.Is(!!value)));
 }
Ejemplo n.º 2
0
 public IEnumerable <Test> test_operator_and()
 {
     return
         (ParameterizedTestBuilder
          .Case(true, true, true)
          .Case(true, false, false)
          .Case(false, true, false)
          .Case(false, false, false)
          .Run((left, right, expected) =>
               (left && right).Is(expected)
               ));
 }