コード例 #1
0
ファイル: WinMDExp_Tests.cs プロジェクト: JamesLinus/msbuild
        public void WinMDModule()
        {
            WinMDExp t = new WinMDExp();

            t.WinMDModule = "Foo.dll";
            CommandLine.ValidateContains(t, "Foo.dll", false);
        }
コード例 #2
0
ファイル: WinMDExp_Tests.cs プロジェクト: JamesLinus/msbuild
 public void TestNoWarnSwitchWithWarnings()
 {
     WinMDExp t = new WinMDExp();
     t.WinMDModule = "Foo.dll";
     t.DisabledWarnings = "41999,42016";
     CommandLine.ValidateHasParameter(t, "/nowarn:41999,42016", false);
 }
コード例 #3
0
ファイル: WinMDExp_Tests.cs プロジェクト: JamesLinus/msbuild
        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);
        }
コード例 #4
0
ファイル: WinMDExp_Tests.cs プロジェクト: JamesLinus/msbuild
        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);
        }
コード例 #5
0
ファイル: WinMDExp_Tests.cs プロジェクト: JamesLinus/msbuild
        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);
        }
コード例 #6
0
ファイル: WinMDExp_Tests.cs プロジェクト: JamesLinus/msbuild
        public void NoOutputFileDefined()
        {
            WinMDExp t = new WinMDExp();

            t.WinMDModule = "Foo.dll";
            t.OutputWindowsMetadataFile = "Foo.winmd";
            CommandLine.ValidateHasParameter(t, "/out:Foo.winmd", false);
        }