Example #1
0
 public void Should_support_disabling_shadow_copy()
 {
     var environment = new ExecutionEnvironmentStub();
     var nunit = new NUnitTask(environment);
     nunit.ShadowCopy = false;
     environment.RunHandler += (p, args, x) =>
     {
         args.Contains("-noshadow").ShouldBe(true);
     };
     nunit.Execute();
 }
Example #2
0
 public void Should_support_disabling_logo()
 {
     var environment = new ExecutionEnvironmentStub();
     var nunit = new NUnitTask(environment);
     nunit.ShowLogo = false;
     environment.RunHandler = (p, args, x) =>
     {
         args.Contains("-nologo").ShouldBe(true);
     };
     nunit.Execute();
 }
Example #3
0
 public void Arguments_should_contain_Target()
 {
     var environment = new ExecutionEnvironmentStub();
     var nunit = new NUnitTask(environment);
     nunit.Target = new Path("MyTests.dll");
     environment.RunHandler += (p, args, x) =>
     {
         args.Contains("MyTests.dll").ShouldBe(true);
     };
     nunit.Execute();
 }
Example #4
0
        public void Arguments_should_start_with_NUnitPath_on_mono()
        {
            var environment = new ExecutionEnvironmentStub();
            environment.IsMonoHandler = () => true;
            var nunit = new NUnitTask(environment);

            environment.RunHandler += (p, args, x) =>
            {
                args.StartsWith(nunit.NUnitPath.ToString()).ShouldBe(true);
            };
            nunit.Execute();
        }