コード例 #1
0
        public void Equals_TextWithObjectArgObject0EqualObject1_ReturnsTrue(string value0, string value1)
        {
            var intObject0 = new ComparableTextPropertyObject {
                TextValue = value0
            };
            object intObject1 = new ComparableTextPropertyObject {
                TextValue = value1
            };

            // Act
            var result = intObject0.Equals(intObject1);

            // Assert
            result
            .Should()
            .BeTrue();
        }
コード例 #2
0
        public void Equals_TextWithObjectArgObject0NotEqualObject1_ReturnsFalse(string value0, string value1)
        {
            var textObject0 = new ComparableTextPropertyObject {
                TextValue = value0
            };
            object textObject1 = new ComparableTextPropertyObject {
                TextValue = value1
            };

            // Act
            var result = textObject0.Equals(textObject1);

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