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

UsesDefaultGoalIfTargetNotSpecified() private method

private UsesDefaultGoalIfTargetNotSpecified ( ) : void
return void
        public void UsesDefaultGoalIfTargetNotSpecified()
        {
            var factory = new DefaultSuiteFactory(parameters.Object, suiteRoot, commandEnumerator.Object);

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

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