Esempio n. 1
0
        /// <summary>
        /// Randomly set the Monster Type
        /// </summary>
        /// <returns></returns>
        public static MonsterTypeEnum GetMonsterType()
        {
            var dice   = DiceHelper.RollDice(1, 3);
            var result = MonsterTypeEnumHelper.GetMonsterTypeByPosition(dice);

            return(result);
        }
        public void MonsterTypeEnumHelper_GetMonsterTypeEnumByPosition_3_Should_Pass()
        {
            // Arrange
            var value = 3;

            // Act
            var Actual   = MonsterTypeEnumHelper.GetMonsterTypeByPosition(value);
            var Expected = MonsterTypeEnum.Poison;

            // Assert
            Assert.AreEqual(Expected, Actual, TestContext.CurrentContext.Test.Name);
        }