public InstrumentedFixtureRunner(FixtureExplorer fixtureExplorer, IList <ITestCommand> testCommands, IProgressMonitor progressMonitor, TestStep topTestStep) { this.fixtureExplorer = fixtureExplorer; this.progressMonitor = progressMonitor; this.testCommands = testCommands; this.topTestStep = topTestStep; Initialize(); }
/// <summary> /// Creates an MbUnit v2 assembly-level test. /// </summary> /// <param name="fixtureExplorer">The fixture explorer.</param> /// <param name="assembly">The test assembly.</param> public MbUnit2AssemblyTest(FixtureExplorer fixtureExplorer, IAssemblyInfo assembly) : base(assembly.Name, assembly, null, null) { if (fixtureExplorer == null) throw new ArgumentNullException("fixtureExplorer"); this.fixtureExplorer = fixtureExplorer; Kind = TestKinds.Assembly; }
/// <summary> /// Creates an MbUnit v2 assembly-level test. /// </summary> /// <param name="fixtureExplorer">The fixture explorer.</param> /// <param name="assembly">The test assembly.</param> public MbUnit2AssemblyTest(FixtureExplorer fixtureExplorer, IAssemblyInfo assembly) : base(assembly.Name, assembly, null, null) { if (fixtureExplorer == null) { throw new ArgumentNullException("fixtureExplorer"); } this.fixtureExplorer = fixtureExplorer; Kind = TestKinds.Assembly; }
/// <summary> /// This method finds the fixture for this class, and checks that there are two /// tests returned (one from the <see cref="TestSuiteFixture"/> and the other /// from <see cref="TestFixture"/>). /// </summary> private void Explore() { FixtureExplorer explorer = new FixtureExplorer(this.GetType().Assembly); explorer.Filter = FixtureFilters.Type(this.GetType().FullName); explorer.Explore(); int i = 0; foreach (object fixture in explorer.FixtureGraph.Fixtures) { ++i; } Assert.AreEqual(2, i); }
public void SetUp() { container = new Container(); view = new StubExplorerView(); shellConductor = MockRepository.GenerateMock <IScreenConductor>(); explorer = new FixtureExplorer(view, container); library = new FixtureLibrary(); FixtureGraph fixture1 = library.FixtureFor("Math"); fixture1.AddStructure("Grammar1", new Sentence()); fixture1.AddStructure("Grammar2", new Sentence()); fixture1.AddStructure("Grammar3", new Sentence()); FixtureGraph fixture2 = library.FixtureFor("Arithmetic"); fixture2.AddStructure("Grammar4", new Sentence()); fixture2.AddStructure("Grammar5", new Sentence()); explorer.Handle(new BinaryRecycleFinished(library)); }
public void build_a_treenode() { TreeNode node = FixtureExplorer.BuildTree(library); specification.AssertMatch(node); }
public void SetUp() { container = new Container(); view = new StubExplorerView(); shellConductor = MockRepository.GenerateMock<IScreenConductor>(); explorer = new FixtureExplorer(view, container); library = new FixtureLibrary(); FixtureGraph fixture1 = library.FixtureFor("Math"); fixture1.AddStructure("Grammar1", new Sentence()); fixture1.AddStructure("Grammar2", new Sentence()); fixture1.AddStructure("Grammar3", new Sentence()); FixtureGraph fixture2 = library.FixtureFor("Arithmetic"); fixture2.AddStructure("Grammar4", new Sentence()); fixture2.AddStructure("Grammar5", new Sentence()); explorer.Handle(new BinaryRecycleFinished(library)); }
/// <summary> /// Creates a runner. /// </summary> /// <param name="fixtureExplorer">The fixture explorer.</param> public MbUnit2TestController(FixtureExplorer fixtureExplorer) { this.fixtureExplorer = fixtureExplorer; }
/// <summary> /// Creates a runner. /// </summary> /// <param name="fixtureExplorer">The fixture explorer.</param> public MbUnit2TestController(FixtureExplorer fixtureExplorer) { this.fixtureExplorer = fixtureExplorer; }
public InstrumentedFixtureRunner(FixtureExplorer fixtureExplorer, IList<ITestCommand> testCommands, IProgressMonitor progressMonitor, TestStep topTestStep) { this.fixtureExplorer = fixtureExplorer; this.progressMonitor = progressMonitor; this.testCommands = testCommands; this.topTestStep = topTestStep; Initialize(); }