public void Parse_RequestMoveInstruction_12345ms()
        {
            var act = Instruction.Parse("Action player1 12345");
            var exp = new RequestMoveInstruction(PlayerName.player1, TimeSpan.FromMilliseconds(12345));

            Assert.AreEqual(exp, act);
        }
예제 #2
0
        public void Parse_RequestMoveInstruction_12345ms()
        {
            var act = Instruction.Parse("action moves 12345");
            var exp = new RequestMoveInstruction(TimeSpan.FromMilliseconds(12345));

            Assert.AreEqual(exp, act);
        }