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); }
} // 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); }
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"); }
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"); }
public void AddNamespaces(ApplicationUnderTest applicationUnderTest) { applicationUnderTest.AddNamespace("fitSharp.Fit.Operators"); applicationUnderTest.AddNamespace("fit.Operators"); }
[Test] public void TypeIsFoundUsingNamespaces() { CheckTypeNotFound("SampleClass"); applicationUnderTest.AddNamespace("fitnesse.unitTest.engine"); CheckTypeFound <SampleClass>("SampleClass"); }