public void SutDoesNotEqualAnonymousObject(object other) { var sut = new ParameterInfoElement(TypeWithParameters.Parameter); var actual = sut.Equals(other); Assert.False(actual); }
public void SutEqualsOtherIdenticalInstance() { var par = TypeWithParameters.Parameter; var sut = new ParameterInfoElement(par); var other = new ParameterInfoElement(par); var actual = sut.Equals(other); Assert.True(actual); }
public void SutDoesNotEqualDifferentInstanceOfSameType() { var sut = new ParameterInfoElement(TypeWithParameters.Parameter); var otherParameter = TypeWithParameters.OtherParameter; var other = new ParameterInfoElement(otherParameter); var actual = sut.Equals(other); Assert.False(actual); }