public override IRun GetRun()
        {
            SequenceRun runs = new SequenceRun();

            // setup
            OptionalMethodRun setup = new OptionalMethodRun(typeof(SetUpAttribute),false);
            runs.Runs.Add( setup );

            // tests
            StepMethodRun test = new StepMethodRun();
            runs.Runs.Add(test);

            // tear down
            OptionalMethodRun tearDown = new OptionalMethodRun(typeof(TearDownAttribute),false);
            runs.Runs.Add(tearDown);

            return runs;
        }
Ejemplo n.º 2
0
        public override IRun GetRun()
        {
            SequenceRun runs = new SequenceRun();

            // setup
            OptionalMethodRun setup = new OptionalMethodRun(typeof(SetUpAttribute), false);

            runs.Runs.Add(setup);

            // tests
            StepMethodRun test = new StepMethodRun();

            runs.Runs.Add(test);

            // tear down
            OptionalMethodRun tearDown = new OptionalMethodRun(typeof(TearDownAttribute), false);

            runs.Runs.Add(tearDown);

            return(runs);
        }