NRConfigManager.Rendering.ExactMethodMatcher.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            var other = obj as ExactMethodMatcher;
            if (other == null)
            {
                return false;
            }
            else
            {
                return this.MethodName == other.MethodName && this.ParameterTypes == other.ParameterTypes;
            }
        }

Usage Example

        public void Equals_ReturnsTrue_ForEquivalentObjects()
        {
            var first = new ExactMethodMatcher("Method 1", new[] { "Parameter 1", "Parameter 2" });
            var second = new ExactMethodMatcher("Method 1", new[] { "Parameter 1", "Parameter 2" });

            Assert.IsTrue(first.Equals(second));
        }
All Usage Examples Of NRConfigManager.Rendering.ExactMethodMatcher::Equals