public void NameValue_Equals_NameValue_ExpectFalse() { var constructor = new NameValue("testName", "testValue"); var other = new NameValue("testNameOther", "testValueOther"); var result = constructor.Equals(other); Assert.IsFalse(result); }
public void NameValue_Equals_Object_ObjectDifferentType() { var constructor = new NameValue("testName", "testValue"); var other = new object(); var result = constructor.Equals(other); Assert.IsFalse(result); }
public void NameValue_Equals_NameValue_ConstructorEqualsOtherExpectTrue() { var constructor = new NameValue("testName", "testValue"); var other = constructor; var result = constructor.Equals(other); Assert.IsTrue(result); }
public void NameValue_Equals_Object_isNullExpectFalse() { var constructor = new NameValue("testName", "testValue"); var other = new object(); other = null; var result = constructor.Equals(other); Assert.IsFalse(result); }