Пример #1
0
        public void setup()
        {
            decorateTestSpecification = Substitute.For <DecorateTestSpecification>();
            nspecTestMethodBuilder    = new NSpecTestMethodBuilder();
            decorator = new NSpecTestDecorator(decorateTestSpecification, nspecTestMethodBuilder);

            test = NUnitSubstitute.ForTestMethod();
        }
Пример #2
0
        public void setup()
        {
            builder = new NSpecTestMethodBuilder();

            test = NUnitSubstitute.ForTestMethod();
            test.BuilderException   = new Exception();
            test.Categories         = new ArrayList();
            test.Description        = "description";
            test.ExceptionProcessor = Substitute.For <ExpectedExceptionProcessor>(test);
            test.Fixture            = this;
            test.IgnoreReason       = "ignoreReason";
            test.Parent             = NUnitSubstitute.ForTest();
            test.Properties         = new Hashtable();
            test.RunState           = RunState.Runnable;
        }