bool TestVjslibModule() { StringILDasmPaper stringPaper = new StringILDasmPaper(2); ILDasmPrettyPrinter prettyPrinter = new ILDasmPrettyPrinter(stringPaper, this.ModuleReaderTest.AssemblyAssembly); prettyPrinter.Module(this.ModuleReaderTest.VjslibAssembly); string result = @".module vjslib { .flags ilonly bit32 dll .mdversion 2:0 .guid 771d4164-d938-4f80-b109-375580583fea .runtime v2.0.50727 .assembly[vjslib] } "; return result.Equals(stringPaper.Content); }
public bool TestCurrentModule() { StringILDasmPaper stringPaper = new StringILDasmPaper(2); ILDasmPrettyPrinter prettyPrinter = new ILDasmPrettyPrinter(stringPaper, this.ModuleReaderTest.TestAssembly); prettyPrinter.Module(this.ModuleReaderTest.TestAssembly); string result = @".module MRW_TestAssembly { .flags ilonly dll .mdversion 2:0 .guid c688ea21-04ad-49a7-931b-119f749453a6 .runtime v2.0.50727 .assembly[MRW_TestAssembly] } "; return result.Equals(stringPaper.Content); }