Ejemplo n.º 1
0
        public void CscHostObjectNotUsedIfToolPathSpecified()
        {
            IBuildEngine2 mockEngine = new MockEngine();
            Csc           csc        = new Csc();

            csc.BuildEngine = mockEngine;
            MockCscHostObject cscHostObject = new MockCscHostObject();

            csc.HostObject = cscHostObject;
            csc.UseHostCompilerIfAvailable = true;
            csc.ToolPath = "c:\\some\\custom\\path";

            Assert.IsTrue(csc.UseAlternateCommandLineToolToExecute());
        }