Ejemplo n.º 1
0
        public void DefaultWin32ManifestEmbeddedInConsoleAppWhenTargetTypeInferred()
        {
            MyManagedCompiler m = new MyManagedCompiler();

            m.BuildEngine = new MockEngine(true);
            m.Sources     = new ITaskItem[] { new TaskItem("bar") };

            Assert.IsTrue
            (
                m.AccessGetWin32ManifestSwitch(false, null).EndsWith("default.win32manifest", StringComparison.OrdinalIgnoreCase),
                "default.win32manifest should be embedded in a console exe!"
            );
        }
Ejemplo n.º 2
0
        public void DefaultWin32ManifestNotEmbeddedInNetModule()
        {
            MyManagedCompiler m = new MyManagedCompiler();

            m.BuildEngine = new MockEngine(true);
            m.Sources     = new ITaskItem[] { new TaskItem("bar") };
            m.TargetType  = "modULE";

            Assert.IsTrue
            (
                String.IsNullOrEmpty(m.AccessGetWin32ManifestSwitch(false, null)),
                "default.win32manifest should NOT be embedded in a net module!"
            );
        }
Ejemplo n.º 3
0
        public void DefaultWin32ManifestNotEmbeddedInNetModule()
        {
            MyManagedCompiler m = new MyManagedCompiler();
            m.BuildEngine = new MockEngine(true);
            m.Sources = new ITaskItem[] { new TaskItem("bar") };
            m.TargetType = "modULE";

            Assert.IsTrue
            (
                String.IsNullOrEmpty(m.AccessGetWin32ManifestSwitch(false, null)),
                "default.win32manifest should NOT be embedded in a net module!"
            );
        }
Ejemplo n.º 4
0
        public void DefaultWin32ManifestEmbeddedInConsoleAppWhenTargetTypeInferred()
        {
            MyManagedCompiler m = new MyManagedCompiler();
            m.BuildEngine = new MockEngine(true);
            m.Sources = new ITaskItem[] { new TaskItem("bar") };

            Assert.IsTrue
            (
                m.AccessGetWin32ManifestSwitch(false, null).EndsWith("default.win32manifest", StringComparison.OrdinalIgnoreCase),
                "default.win32manifest should be embedded in a console exe!"
            );
        }