public void EqualsWithDeclaringInterfaceTest() { // Arrange var firstProxyDefinition = new ClassProxyDefinition(typeof (Other), new[] {typeof (IOther)}); var secondProxyDefinition = new ClassProxyDefinition(typeof (Other), Type.EmptyTypes); // Act var equals = firstProxyDefinition.Equals(secondProxyDefinition); // Assert Assert.That(equals, Is.True); }
public void EqualsWithSwappedInterfacesTest() { // Arrange var firstProxyDefinition = new ClassProxyDefinition(typeof (Other), new[] {typeof (IOne), typeof (ITwo)}); var secondProxyDefinition = new ClassProxyDefinition(typeof (Other), new[] {typeof (ITwo), typeof (IOne)}); // Act var equals = firstProxyDefinition.Equals(secondProxyDefinition); // Assert Assert.That(equals, Is.True); }