コード例 #1
0
        public void OccupiedNode_NoStatus_Occupied()
        {
            NodeState state = NodeState.Occupied;

            NodeState testResult = WorldRules.GetNewState(state, "");

            Assert.AreEqual(NodeState.Occupied, testResult);
        }
コード例 #2
0
        public void EmptyNode_NoArrival_Empty()
        {
            NodeState state = NodeState.Empty;

            NodeState testResult = WorldRules.GetNewState(state, "empty");

            Assert.AreEqual(NodeState.Empty, testResult);
        }
コード例 #3
0
        public void OccupiedNode_EntityMoved_Empty()
        {
            NodeState state = NodeState.Occupied;

            NodeState testResult = WorldRules.GetNewState(state, "empty");

            Assert.AreEqual(NodeState.Empty, testResult);
        }
コード例 #4
0
        public void EmptyNode_EntityArrived_Occupied()
        {
            NodeState state = NodeState.Empty;

            NodeState testResult = WorldRules.GetNewState(state, "occupied");

            Assert.AreEqual(NodeState.Occupied, testResult);
        }