public void PrimitiveWrapper_CompareToSameObject_ShouldBeEqual() { // Arrange var first = new WrapperTest(1); object second = first; // Act var areEqual = first.Equals(second); // Assert areEqual.Should().BeTrue(); }
public void PrimitiveWrapper_CompareToOtherTypeObject_ShouldBeNotEqual() { // Arrange var first = new WrapperTest(1); object second = "toto"; // Act var areEqual = first.Equals(second); // Assert areEqual.Should().BeFalse(); }
public void PrimitiveWrapper_CompareToNotNullPrimitiveWrapper_ShouldNotBeEqual() { // Arrange WrapperTest first = new WrapperTest(1); WrapperTest second = null; // Act var areEqual = first.Equals(second); // Assert areEqual.Should().BeFalse(); }