StartSuite() public method

public StartSuite ( Suite suite ) : void
suite Suite
return void
Exemplo n.º 1
0
        public void add_a_suite_node_directly_to_the_hierarchy()
        {
            var top = new TreeNode(new Hierarchy("project1"));
            var builder = new TreeBuilder(top);

            var suite = new Suite("suite1");
            builder.StartSuite(suite);

            top.Children.ShouldEqual(new INamedItem[] {suite});
        }
Exemplo n.º 2
0
        public void add_suite_then_add_test()
        {
            var top = new TreeNode(new Hierarchy("project1"));
            var builder = new TreeBuilder(top);
            var suite = new Suite("suite1");
            var test = new Test("test1");

            builder.StartSuite(suite);
            builder.Test(test);

            top.Items[0].ShouldBeOfType<TreeNode>().Children.ShouldEqual(new INamedItem[] {test});
        }
Exemplo n.º 3
0
        public void add_suite_then_add_test_then_finish_suite_then_add_test_directly_to_hierarchy()
        {
            var top = new TreeNode(new Hierarchy("project1"));
            var builder = new TreeBuilder(top);
            var suite = new Suite("suite1");
            var test1 = new Test("test1");
            var test2 = new Test("test2");

            builder.StartSuite(suite);
            builder.Test(test1);
            builder.EndSuite(suite);
            builder.Test(test2);

            top.Children.ShouldEqual(new INamedItem[] {suite, test2});
        }