Example #1
0
            public void Different_custom_matchers_with_render_expressions()
            {
                var first  = GetMatch(() => Order.IsSmallRE());
                var second = GetMatch(() => Order.IsLargeRE());

                Assert.NotEqual(first, second);
            }
Example #2
0
 public static Order IsLargeRE()
 {
     return(Match.Create <Order>(
                order => order.MetricTons >= 1000M,
                () => Order.IsLargeRE()
                ));
 }