Beispiel #1
0
 public void SetUp()
 {
     subFlows.Begin("subFlow");
     subFlows.Next(typeof(One));
     subFlows.Next(typeof(Two));
     subFlows.Finish();
 }
        public void Start()
        {
            flows.Begin("subflow1");
            flows.Next(typeof(One));
            flows.Act();
            flows.Next(typeof(Two));

            flows.Begin("subflow2");
            flows.Next(typeof(One));
            flows.Finish();
            Assert.That(flows, Has.Count.EqualTo(2));
            Assert.That(flows[0].FlowSteps, Has.Count.EqualTo(2));
            Assert.That(flows[1].FlowSteps, Has.Count.EqualTo(1));
        }
Beispiel #3
0
        public void Start()
        {
            flows.Begin("subflow1");
            flows.Next(typeof(One));
            flows.Act();
            flows.Next(typeof(Two));

            flows.Begin("subflow2");
            flows.Next(typeof(One));
            flows.Finish();
            Assert.Equal(2, flows.Count);
            Assert.Equal(2, flows[0].FlowSteps.Count);
            Assert.Equal(1, flows[1].FlowSteps.Count);
        }