public void WinMDModule() { WinMDExp t = new WinMDExp(); t.WinMDModule = "Foo.dll"; CommandLine.ValidateContains(t, "Foo.dll", false); }
public void TestNoWarnSwitchWithWarnings() { WinMDExp t = new WinMDExp(); t.WinMDModule = "Foo.dll"; t.DisabledWarnings = "41999,42016"; CommandLine.ValidateHasParameter(t, "/nowarn:41999,42016", false); }
public void PDBFileTesting() { WinMDExp t = new WinMDExp(); t.WinMDModule = "Foo.dll"; t.OutputWindowsMetadataFile = "Foo.dll"; t.OutputPDBFile = "output.pdb"; t.InputPDBFile = "input.pdb"; CommandLine.ValidateHasParameter(t, "/pdb:output.pdb", false); CommandLine.ValidateHasParameter(t, "/mp:input.pdb", false); }
public void DocumentationFile() { WinMDExp t = new WinMDExp(); t.WinMDModule = "Foo.dll"; t.OutputDocumentationFile = "output.xml"; t.InputDocumentationFile = "input.xml"; CommandLine.ValidateHasParameter(t, "/d:output.xml", false); CommandLine.ValidateHasParameter(t, "/md:input.xml", false); }
public void References() { WinMDExp t = new WinMDExp(); t.WinMDModule = "Foo.dll"; TaskItem mscorlibReference = new TaskItem("mscorlib.dll"); TaskItem windowsFoundationReference = new TaskItem("Windows.Foundation.winmd"); t.References = new TaskItem[] { mscorlibReference, windowsFoundationReference }; CommandLine.ValidateHasParameter(t, "/reference:mscorlib.dll", false); CommandLine.ValidateHasParameter(t, "/reference:Windows.Foundation.winmd", false); }
public void NoOutputFileDefined() { WinMDExp t = new WinMDExp(); t.WinMDModule = "Foo.dll"; t.OutputWindowsMetadataFile = "Foo.winmd"; CommandLine.ValidateHasParameter(t, "/out:Foo.winmd", false); }