public void EqualsTest_CompareWithNull_NotEquals()
        {
            var firstFieldContent = new FieldContent("Name", "Value");
            var secondFieldContent = new FieldContent("Name", "Value2");

            Assert.IsFalse(firstFieldContent.Equals(null));
        }
        public void EqualsTest_ValuesAreNotEqual_NotEquals()
        {
            var firstFieldContent = new FieldContent("Name", "Value");
            var secondFieldContent = new FieldContent("Name", "Value2");

            Assert.IsFalse(firstFieldContent.Equals(secondFieldContent));
        }
        public void EqualsTest_ValuesAreEquel_Equals()
        {
            var firstFieldContent = new FieldContent("Name", "Value");
            var secondFieldContent = new FieldContent("Name", "Value");

            Assert.IsTrue(firstFieldContent.Equals(secondFieldContent));
        }
예제 #4
0
        public void EqualsTest_CompareWithNull_NotEquals()
        {
            var firstFieldContent  = new FieldContent("Name", "Value");
            var secondFieldContent = new FieldContent("Name", "Value2");

            Assert.IsFalse(firstFieldContent.Equals(null));
        }
예제 #5
0
        public void EqualsTest_ValuesAreNotEqual_NotEquals()
        {
            var firstFieldContent  = new FieldContent("Name", "Value");
            var secondFieldContent = new FieldContent("Name", "Value2");

            Assert.IsFalse(firstFieldContent.Equals(secondFieldContent));
        }
예제 #6
0
        public void EqualsTest_ValuesAreEquel_Equals()
        {
            var firstFieldContent  = new FieldContent("Name", "Value");
            var secondFieldContent = new FieldContent("Name", "Value");

            Assert.IsTrue(firstFieldContent.Equals(secondFieldContent));
        }
예제 #7
0
        public void EqualsTest_CompareWithNull_NotEquals()
        {
            //Given
            var firstFieldContent = new FieldContent(Name, Value);

            //When
            var result = firstFieldContent.Equals(null);

            //Then
            result.Should().BeFalse();
        }
예제 #8
0
        public void ShouldCompareTwoObjects(string name, string firstValue, string secondValue, bool expectedCompareResult)
        {
            //Given
            var firstFieldContent  = new FieldContent(name, firstValue);
            var secondFieldContent = new FieldContent(name, secondValue);

            //When
            var result = firstFieldContent.Equals(secondFieldContent);

            //Then
            result.Should().Be(expectedCompareResult);
        }