public void MatchesTrueTest() { var rule = new NotUnityInterceptionAssembly(); var typeToIntercept = typeof(AssemblyNameStartsWith); var typeOfInstance = typeof(AssemblyNameStartsWith); var actual = rule.Matches(typeToIntercept, typeOfInstance); Assert.AreEqual(true, actual); }
public void MatchesFalseTest() { var rule = new NotUnityInterceptionAssembly(); var typeToIntercept = typeof(IInterceptionBehavior); var typeOfInstance = typeof(IInterceptionBehavior); var actual = rule.Matches(typeToIntercept, typeOfInstance); Assert.AreEqual(false, actual); }
public void NotUnityInterceptionAssemblyConstructorTest() { var target = new NotUnityInterceptionAssembly(); Assert.IsNotNull(target); }