示例#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()
        {
            decorateTestSpecification = Substitute.For<DecorateTestSpecification>();
            nspecTestMethodBuilder = new NSpecTestMethodBuilder();
            decorator = new NSpecTestDecorator(decorateTestSpecification, nspecTestMethodBuilder);

            test = NUnitSubstitute.ForTestMethod();
        }
示例#3
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;
        }
示例#4
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;
        }