示例#1
0
 public Service(Configuration configuration) : base(configuration, configuration.GetItem <Operators>())
 {
     ApplicationUnderTest.AddNamespace("fit");
     ApplicationUnderTest.AddNamespace("fitSharp.Fit.Fixtures");
     ApplicationUnderTest.AddAssembly(Assembly.GetExecutingAssembly().CodeBase);
     configuration.GetItem <Operators>().AddNamespaces(ApplicationUnderTest);
 }
示例#2
0
        }                                               // todo: test only -> factory

        public Service(Memory memory) : base(memory, memory.GetItem <Operators>())
        {
            ApplicationUnderTest.AddNamespace("fit");
            ApplicationUnderTest.AddNamespace("fitSharp.Fit.Fixtures");
            ApplicationUnderTest.AddAssembly(Assembly.GetExecutingAssembly().CodeBase);
            memory.GetItem <Operators>().AddNamespaces(ApplicationUnderTest);
        }
示例#3
0
        public CellProcessorBase(Memory memory, CellOperators operators) : base(memory)
        {
            TestStatus          = new TestStatus();
            CallStack           = new CallStack();
            this.operators      = operators;
            operators.Processor = this;

            Memory.GetItem <Symbols>();
            Memory.GetItem <Procedures>();

            ApplicationUnderTest.AddNamespace("fitSharp.Fit.Fixtures");
        }
示例#4
0
        public CellProcessorBase(Memory memory, CellOperators operators) : base(memory)
        {
            TestStatus          = new TestStatus();
            CallStack           = new CallStack();
            this.operators      = operators;
            operators.Processor = this;

            Memory.GetItem <Symbols>();
            Memory.GetItem <Procedures>();

            Memory.Add(new FitEnvironment(this));
            Memory.ItemOf <FitEnvironment>().RunTest = new RunTestDefault();

            ApplicationUnderTest.AddNamespace("fitSharp.Fit.Fixtures");
        }
 [Test] public void TypeIsFoundUsingNamespaces()
 {
     CheckTypeNotFound("SampleClass");
     applicationUnderTest.AddNamespace(typeof(SampleClass).Namespace);
     CheckTypeFound <SampleClass>("SampleClass");
 }
示例#6
0
 public void AddNamespaces(ApplicationUnderTest applicationUnderTest)
 {
     applicationUnderTest.AddNamespace("fitSharp.Fit.Operators");
     applicationUnderTest.AddNamespace("fit.Operators");
 }
示例#7
0
 [Test] public void TypeIsFoundUsingNamespaces()
 {
     CheckTypeNotFound("SampleClass");
     applicationUnderTest.AddNamespace("fitnesse.unitTest.engine");
     CheckTypeFound <SampleClass>("SampleClass");
 }