public void TestNotAllowedThroughBaseType() { var mod = new Mock <CustomMod1>(); Assert.That(ModUtils.CheckAllowed(new[] { mod.Object }, new[] { typeof(Mod) }), Is.False); }
public void TestAllowedThroughMostDerivedType() { var mod = new Mock <CustomMod1>(); Assert.That(ModUtils.CheckAllowed(new[] { mod.Object }, new[] { mod.Object.GetType() })); }