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)); }
public void EqualsTest_CompareWithNull_NotEquals() { //Given var firstFieldContent = new FieldContent(Name, Value); //When var result = firstFieldContent.Equals(null); //Then result.Should().BeFalse(); }
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); }