Beispiel #1
0
        public void ApplyConditionShouldCall()
        {
            string nextScene = string.Empty;

            controllerMock.Setup(s => s.MovePlayer(It.IsAny <string>(), null, string.Empty))
            .Callback <string, string, string>((dest, origin, desc) => nextScene = dest);

            condition.ApplyCondition(controllerMock.Object);
            Assert.Equal("500", nextScene);
        }