public void SutDoesNotEqualAnonymousObject(object other) { var sut = new MethodInfoElement(TypeWithMethods.Method); var actual = sut.Equals(other); Assert.False(actual); }
public void SutEqualsOtherIdenticalInstance() { var mi = TypeWithMethods.Method; var sut = new MethodInfoElement(mi); var other = new MethodInfoElement(mi); var actual = sut.Equals(other); Assert.True(actual); }
public void SutDoesNotEqualDifferentInstanceOfSameType() { var sut = new MethodInfoElement(TypeWithMethods.Method); var otherMethod = this.GetType().GetMethods()[0]; var other = new MethodInfoElement(otherMethod); var actual = sut.Equals(other); Assert.False(actual); }