예제 #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");
 }