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)); }
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); }
public void SetUp() { subFlows.Begin("subFlow"); subFlows.Next(typeof(One)); subFlows.Next(typeof(Two)); subFlows.Finish(); }