コード例 #1
0
ファイル: TestHandler.cs プロジェクト: m7nu3l/tac2cil
        public void VerifyAssembly(string filePath)
        {
            bool isMono      = Type.GetType("Mono.Runtime") != null;
            var  shellOutput = isMono ? ShellService.PEDump(filePath) : ShellService.PEVerify(filePath);

            if (shellOutput.ExitCode != 0)
            {
                throw new Exception(shellOutput.ToString());
            }
        }