コード例 #1
0
        public void SetUp()
        {
            theChain = new BehaviorChain();

            node1 = new StubNode();
            node2 = new StubNode();
            node3 = new StubNode();

            theChain.AddToEnd(node1);
            theChain.AddToEnd(node2);
            theChain.AddToEnd(node3);

            theChain.ShouldHaveTheSameElementsAs(node1, node2, node3);
        }
コード例 #2
0
        public void SetUp()
        {
            theChain = new BehaviorChain();

            node1 = new StubNode();
            node2 = new StubNode();
            node3 = new StubNode();

            theChain.AddToEnd(node1);
            theChain.AddToEnd(node2);
            theChain.AddToEnd(node3);

            theChain.ShouldHaveTheSameElementsAs(node1, node2, node3);
        }