コード例 #1
0
 public void Ignores_casing_of_the_expected_value_when_matching()
 {
     var comparer = new BooleanValueComparer();
     comparer.TheseValuesAreTheSame("true", true).ShouldBeTrue();
     comparer.TheseValuesAreTheSame("FALSE", false).ShouldBeTrue();
     comparer.TheseValuesAreTheSame("truE", true).ShouldBeTrue();
     comparer.TheseValuesAreTheSame("false", false).ShouldBeTrue();
 }
コード例 #2
0
 public void Returns_false_if_the_value_and_string_do_not_match()
 {
     var comparer = new BooleanValueComparer();
     comparer.TheseValuesAreTheSame("True", false).ShouldBeFalse();
     comparer.TheseValuesAreTheSame("False", true).ShouldBeFalse();
 }