public void CodeCheck_WithBlackList() { _checker = new AssemblyChecker(new [] { "Google.Protobuf" }, null); var code = ReadCode(typeof(TestContract.TestContract).Assembly.Location); Should.Throw <InvalidCodeException>(() => _checker.CodeCheck(code, true)); }
public void CodeCheck_WithoutPrivilege() { var code = ReadCode(typeof(TestContract.TestContract).Assembly.Location); Should.NotThrow(() => _checker.CodeCheck(code, false)); }