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

RequiresExplicitActiveGoalIfCommandNeedsIt() private method

private RequiresExplicitActiveGoalIfCommandNeedsIt ( ) : void
return void
        public void RequiresExplicitActiveGoalIfCommandNeedsIt()
        {
            commandEnumerator.Setup(c => c.NeedsExplicitTargetGoal(It.IsAny<string>())).Returns(true);

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

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