public void Different_custom_matchers_with_render_expressions() { var first = GetMatch(() => Order.IsSmallRE()); var second = GetMatch(() => Order.IsLargeRE()); Assert.NotEqual(first, second); }
public static Order IsLargeRE() { return(Match.Create <Order>( order => order.MetricTons >= 1000M, () => Order.IsLargeRE() )); }