コード例 #1
0
 public void Can_apply_custom_comparisons_to_a_property_of_a_specific_instance()
 {
     Given.A_lambda_representation_of_a_property_we_wish_to_allow_a_certain_range();
     And.A_custom_comparator_for_that_type();
     When.We_attach_that_custom_comparator_to_the_comparison_on_two_slightly_different_objects_that_are_still_within_range();
     Then.Nothing();
 }
コード例 #2
0
 public void Can_give_the_comparison_a_little_slack_by_allowing_the_use_of_custom_comparators()
 {
     Given.A_lambda_representation_of_a_property_we_wish_to_allow_a_certain_range();
     And.A_custom_comparator_for_that_type();
     When.We_do_the_comparison_on_two_slightly_different_objects_that_are_still_within_range();
     Then.Nothing();
 }