CanCompare() 공개 메소드

public CanCompare ( object actualValue ) : bool
actualValue object
리턴 bool
 public void Cannot_compare_if_the_value_is_not_a_single()
 {
     var valueComparer = new FloatValueComparer();
     valueComparer.CanCompare("x").Should().BeFalse();
     valueComparer.CanCompare(1).Should().BeFalse();
     valueComparer.CanCompare(3.14M).Should().BeFalse();
 }
 public void Can_compare_if_the_value_is_a_single()
 {
     var valueComparer = new FloatValueComparer();
     valueComparer.CanCompare(1.0F).Should().BeTrue();
     valueComparer.CanCompare(3.34F).Should().BeTrue();
     valueComparer.CanCompare(-1.24F).Should().BeTrue();
 }