Bari.Core.Test.Model.DefaultSuiteFactoryTest.UsesExplicitTargetGoalAsActive C# (CSharp) Method

UsesExplicitTargetGoalAsActive() private method

private UsesExplicitTargetGoalAsActive ( ) : void
return void
        private void UsesExplicitTargetGoalAsActive()
        {
            parameters.SetupGet(p => p.Goal).Returns("goal2");

            var factory = new DefaultSuiteFactory(parameters.Object, suiteRoot, commandEnumerator.Object);

            var goal1 = new Goal("goal1");
            var goal2 = new Goal("goal2");
            var suite = factory.CreateSuite(new HashSet<Goal>(new[] { goal1, goal2 }), Suite.DebugGoal);

            suite.ActiveGoal.Should().Be(goal2);
        }