Beispiel #1
0
        public void ApplyOperatorEqualityToNullMustReturnExpectedResultForClassOperatorObjectDefaultNull()
        {
            // Arrange
            BikeOperatorClassObject bikeOperatorClassObject = default;

            // Act
            var result = EqComponent.ApplyOperatorEqualityToNull <BikeOperatorClassObject>(bikeOperatorClassObject);

            // Assert
            result.Should().BeFailure("Equality operator returned 'true' on expected non-equal objects.");
        }
Beispiel #2
0
        public void ApplyOperatorEqualityToNullMustReturnExpectedResultForClassOperatorObjectNotNull()
        {
            // Arrange
            var bikeOperatorClassObject = new BikeOperatorClassObject("Giant", "Revolt", 2020);

            // Act
            var result = EqComponent.ApplyOperatorEqualityToNull <BikeOperatorClassObject>(bikeOperatorClassObject);

            // Assert
            result.Should().BeSuccess();
        }