public void EqualsWithDeclaringInterfaceTest()
        {
            // Arrange
            var firstProxyDefinition = new DelegateProxyDefinition(typeof (Action), Type.EmptyTypes);
            var secondProxyDefinition = new DelegateProxyDefinition(typeof (Action), new[] {typeof (ICloneable)});

            // Act
            var equals = firstProxyDefinition.Equals(secondProxyDefinition);

            // Assert
            Assert.That(equals, Is.True);
        }
        public void EqualsWithoutInterfacesTest()
        {
            // Arrange
            var firstProxyDefinition = new DelegateProxyDefinition(typeof (Action), Type.EmptyTypes);
            var secondProxyDefinition = new DelegateProxyDefinition(typeof (Action), Type.EmptyTypes);

            // Act
            var equals = firstProxyDefinition.Equals(secondProxyDefinition);

            // Assert
            Assert.That(equals, Is.True);
        }
        public void EqualsWithSwappedInterfacesTest()
        {
            // Arrange
            var firstProxyDefinition = new DelegateProxyDefinition(typeof (Action), new[] {typeof (IOne), typeof (ITwo)});
            var secondProxyDefinition = new DelegateProxyDefinition(typeof (Action), new[] {typeof (ITwo), typeof (IOne)});

            // Act
            var equals = firstProxyDefinition.Equals(secondProxyDefinition);

            // Assert
            Assert.That(equals, Is.True);
        }