public void Equals_WhenDerivedClass_ReturnsFalse() { var testInput1 = IntegerGenerator.AnyPositiveInteger(); var testInput2 = IntegerGenerator.AnyPositiveInteger(); var item1 = new TestObjectB(testInput1, testInput2); var item2 = new TestObjectC(testInput1, testInput2); item1.Equals(item2).Should().BeFalse(); }
public void Equals_WhenEqual_ReturnsTrue() { var testInput1 = IntegerGenerator.AnyPositiveInteger(); var testInput2 = IntegerGenerator.AnyPositiveInteger(); var item1 = new TestObjectB(testInput1, testInput2); var item2 = new TestObjectB(testInput1, testInput2); item1.Equals(item2).Should().BeTrue(); }