public void Returns_false_when_the_single_values_do_not_match()
 {
     var valueComparer = new FloatValueComparer();
     valueComparer.Compare("-1", 1.0F).Should().BeFalse();
     valueComparer.Compare("0", 1.0F).Should().BeFalse();
     valueComparer.Compare("100.2874", 100.2873F).Should().BeFalse();
 }
 public void Returns_false_when_the_expected_value_is_not_a_single()
 {
     var valueComparer = new FloatValueComparer();
     valueComparer.Compare("x", 0.0F).Should().BeFalse();
     valueComparer.Compare("", 0.0F).Should().BeFalse();
     valueComparer.Compare("-----3", 0F).Should().BeFalse();
 }
 public void Returns_true_when_the_single_values_match()
 {
     var valueComparer = new FloatValueComparer();
     valueComparer.Compare("3.14", 3.14F).Should().BeTrue();
     valueComparer.Compare("0", 0.0F).Should().BeTrue();
     valueComparer.Compare("-1", -1.0F).Should().BeTrue();
 }