public void Nunit() { var mock = MockRepository.GenerateStub<IActionExcecutor>(); var subject = new UnitTestFrameworkArgs(mock); Func<NUnitRunner, object> args = x => x.ContinueOnError.FileToTest("").FailOnError; subject.Nunit(args); mock.AssertWasCalled(x => x.ExecuteFailable(args)); }
public void Nunit() { var mock = MockRepository.GenerateStub <IActionExcecutor>(); var subject = new UnitTestFrameworkArgs(mock); Func <NUnitRunner, object> args = x => x.ContinueOnError.FileToTest("").FailOnError; subject.Nunit(args); mock.AssertWasCalled(x => x.ExecuteFailable(args)); }
public void ShouldConstructWithDefaults() { var subject = new UnitTestFrameworkArgs(); Assert.That(subject._actionExcecutor, Is.TypeOf<ActionExcecutor>()); }
public void ShouldConstructWithDefaults() { var subject = new UnitTestFrameworkArgs(); Assert.That(subject._actionExcecutor, Is.TypeOf <ActionExcecutor>()); }