예제 #1
0
        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));
        }
예제 #2
0
        public void CodeCheck_WithoutPrivilege()
        {
            var code = ReadCode(typeof(TestContract.TestContract).Assembly.Location);

            Should.NotThrow(() => _checker.CodeCheck(code, false));
        }