public async Task Hierarchy3(bool forward) { var tester = new HierarchyTester(); var block1 = tester.RootBlock; var block2 = tester.CreateDummyBlock(); var block3 = tester.CreateDummyBlock(); var block4 = tester.CreateDummyBlock(); var blockNode1 = HierarchyTester.CreateNode("blockNode1", block2); var blockNode2 = HierarchyTester.CreateNode("blockNode2", block3); var blockNode3 = HierarchyTester.CreateNode("blockNode3", block4); var pause1 = HierarchyTester.CreatePauseNode("pause1"); var pause2 = HierarchyTester.CreatePauseNode("pause2"); var pause3 = HierarchyTester.CreatePauseNode("pause3"); var pause4 = HierarchyTester.CreatePauseNode("pause4"); var pause5 = HierarchyTester.CreatePauseNode("pause5"); tester.MoveWithArgs(forward, block1).MustReturn(blockNode1, blockNode3, null); tester.MoveWithArgs(forward, block2).MustReturn(pause1, blockNode2, pause4, null); tester.MoveWithArgs(forward, block3).MustReturn(pause2, pause3, null); tester.MoveWithArgs(forward, block4).MustReturn(pause5, null); await tester.MoveAsync(forward, pause1); await tester.MoveAsync(forward, pause2); await tester.MoveAsync(forward, pause3); await tester.MoveAsync(forward, pause4); await tester.MoveAsync(forward, pause5); await tester.MoveAsync(forward, null); }
public async Task Hierarchy1(bool forward) { var tester = new HierarchyTester(); var block1 = tester.RootBlock; var block2 = tester.CreateDummyBlock(); var node1 = HierarchyTester.CreateNode("node1", block2); var node2 = HierarchyTester.CreatePauseNode("node2"); tester.MoveWithArgs(forward, block1).MustReturn(node1, null); tester.MoveWithArgs(forward, block2).MustReturn(node2, null); await tester.MoveAsync(forward, node2); await tester.MoveAsync(forward, null); }