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); }
protected override void Because() { buildEngine = new BuildEngine(null, "", FrameworkVersion.FrameworkVersion35, CreateStub <IDependencyDispatcher>()); buildEngine.AssignParameters(switches); }