public static void NotEqualsOperator___Should_return_false___When_both_sides_of_operator_are_null() { // Arrange ModelEqualityPublicSetReadOnlyCollection systemUnderTest1 = null; ModelEqualityPublicSetReadOnlyCollection systemUnderTest2 = null; // Act var actual = systemUnderTest1 != systemUnderTest2; // Assert actual.AsTest().Must().BeFalse(); }
public static void Equals_with_ModelEqualityPublicSetReadOnlyCollection___Should_return_false___When_parameter_other_is_null() { var scenarios = EquatableTestScenarios.ValidateAndPrepareForTesting(); foreach (var scenario in scenarios) { // Arrange ModelEqualityPublicSetReadOnlyCollection systemUnderTest = null; // Act var actual = scenario.ReferenceObject.Equals(systemUnderTest); // Assert actual.AsTest().Must().BeFalse(because: scenario.Id); } }
public static void NotEqualsOperator___Should_return_true___When_one_side_of_operator_is_null_and_the_other_side_is_not_null() { var scenarios = EquatableTestScenarios.ValidateAndPrepareForTesting(); foreach (var scenario in scenarios) { // Arrange ModelEqualityPublicSetReadOnlyCollection systemUnderTest = null; // Act var actual1 = systemUnderTest != scenario.ReferenceObject; var actual2 = scenario.ReferenceObject != systemUnderTest; // Assert actual1.AsTest().Must().BeTrue(because: scenario.Id); actual2.AsTest().Must().BeTrue(because: scenario.Id); } }