public void Should_support_disabling_shadow_copy() { var fileSystem = new InMemoryFileSystem(); var environment = new ExecutionEnvironmentStub(); var nunit = new NUnitTask(fileSystem, environment) {ShadowCopy = false}; environment.RunHandler += (p, args, x) => args.Contains("-noshadow").ShouldBe(true); nunit.Run(); }
public void Arguments_should_contain_Target() { var fileSystem = new InMemoryFileSystem(); var environment = new ExecutionEnvironmentStub(); var nunit = new NUnitTask(fileSystem, environment) {Target = new Path("MyTests.dll")}; environment.RunHandler += (p, args, x) => args.Contains("MyTests.dll").ShouldBe(true); nunit.Run(); }
public void Arguments_should_start_with_NUnitPath_on_mono() { var fileSystem = new InMemoryFileSystem(); var environment = new ExecutionEnvironmentStub {IsMonoHandler = () => true}; var nunit = new NUnitTask(fileSystem, environment); environment.RunHandler += (p, args, x) => args.StartsWith(nunit.NUnitPath.ToString()).ShouldBe(true); nunit.Run(); }
public void Should_support_disabling_logo() { var fileSystem = new InMemoryFileSystem(); var environment = new ExecutionEnvironmentStub(); var nunit = new NUnitTask(fileSystem, environment) {ShowLogo = false}; environment.RunHandler = (p, args, x) => { args.Contains("-nologo").ShouldBe(true); }; nunit.Run(); }