コード例 #1
0
 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));
 }
コード例 #2
0
        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));
        }
コード例 #3
0
 public void ShouldConstructWithDefaults()
 {
     var subject = new UnitTestFrameworkArgs();
     Assert.That(subject._actionExcecutor, Is.TypeOf<ActionExcecutor>());
 }
コード例 #4
0
        public void ShouldConstructWithDefaults()
        {
            var subject = new UnitTestFrameworkArgs();

            Assert.That(subject._actionExcecutor, Is.TypeOf <ActionExcecutor>());
        }