コード例 #1
0
 public void FullWindowsAssembly()
 {
     var file = @"C:\Windows\System32\WinMetadata\Windows.Foundation.winmd";
     var errors = new StringBuilderTypeNotFoundErrorHandler();
     var typeCollection = new ToTypeScriptD.Core.TypeWriters.TypeCollection(new ToTypeScriptD.Core.WinMD.WinMDTypeWriterTypeSelector());
     var config = new WinmdConfig
     {
         TypeNotFoundErrorHandler = errors,
     };
     var result = ToTypeScriptD.Render.FullAssembly(file, typeCollection, config);
     (errors + result).Verify();
 }
コード例 #2
0
 public void FullSampleAssembly()
 {
     var file = base.NativeAssembly.ComponentPath;
     var errors = new StringBuilderTypeNotFoundErrorHandler();
     var typeCollection = new ToTypeScriptD.Core.TypeWriters.TypeCollection(new ToTypeScriptD.Core.WinMD.WinMDTypeWriterTypeSelector());
     var config = new WinmdConfig
     {
         TypeNotFoundErrorHandler = errors,
     };
     var result = ToTypeScriptD.Render.FullAssembly(file, typeCollection, config);
     (errors + result).Verify();
 }