public void Matches_AllTypeIdentifiers() { ReplacedMethodOverride methodOverride = new ReplacedMethodOverride("Execute", "replacer"); methodOverride.AddTypeIdentifier(typeof(object).FullName); methodOverride.AddTypeIdentifier(typeof(object).FullName); Assert.IsTrue(methodOverride.Matches(typeof(Executor).GetMethod("Execute", new Type[] { typeof(object), typeof(object) }))); }
public void Matches_MatchingMethodNameWithOverloadAndBadTypeIdentifiers() { ReplacedMethodOverride methodOverride = new ReplacedMethodOverride("Execute", "replacer"); methodOverride.AddTypeIdentifier(GetType().FullName); Assert.IsFalse(methodOverride.Matches(typeof(Executor).GetMethod("Execute", new Type[] { typeof(object) }))); }