Пример #1
0
            public void Different_parameterized_custom_matchers_with_render_expressions_but_different_arguments()
            {
                var first  = GetMatch(() => Order.IsSmallerThanRE(123M));
                var second = GetMatch(() => Order.IsLargerThanRE(456M));

                Assert.NotEqual(first, second);
            }
Пример #2
0
 public static Order IsLargerThanRE(decimal threshold)
 {
     return(Match.Create <Order>(
                order => order.MetricTons < threshold,
                () => Order.IsLargerThanRE(threshold)
                ));
 }