public void Distance_Equals_Then_ResultShouldBeAsExpected(double lhs, double rhs, bool expected) { var testee1 = new Distance(lhs, x => x.Miles); var testee2 = new Distance(rhs, x => x.Miles); var result = testee1.Equals(testee2); result.Should().Be(expected); }
public void Distance_Equals_When_PrefixesAreDifferent_Then_ResultShouldBeAsExpected( double lhs, double lhsPrefix, double rhs, double rhsPrefix, bool expected) { var testee1 = new Distance(lhs, x => x.By(lhsPrefix).Meters); var testee2 = new Distance(rhs, x => x.By(rhsPrefix).Meters); var result = testee1.Equals(testee2); result.Should().Be(expected); }