예제 #1
0
        public void It_Should_Process_Parameters()
        {
            buildEngine.AssignParameters(new[] { "/p:SOMEVAR=true" });

            var result = runner.CommandLineArguments("abc.sln",
                                                     buildEngine,
                                                     packageTree, FrameworkVersion.FrameworkVersion35);

            Assert.Equal(
                "\"abc.sln\" /p:OutputPath=\"C:\\temp\\output\"  /p:TargetFrameworkVersion=v3.5 /p:NoWarn=1591 /consoleloggerparameters:Summary /p:SOMEVAR=true",
                result);
        }
예제 #2
0
        protected override void Because()
        {
            buildEngine = new BuildEngine(null, "", FrameworkVersion.FrameworkVersion35, CreateStub <IDependencyDispatcher>());

            buildEngine.AssignParameters(switches);
        }