Exemple #1
0
        public void BasePlayerModel_GetRange_Default_Should_Pass()
        {
            var data = new BasePlayerModel <CharacterModel>();

            var Result = data.GetRange();

            Assert.AreEqual(1, Result);
        }
Exemple #2
0
        public async Task BasePlayerModel_GetItemRange_Valid_Item_Range_1_Should_Pass()
        {
            var data = new BasePlayerModel <CharacterModel>();
            var item = new ItemModel {
                Range = 1
            };

            await ItemIndexViewModel.Instance.CreateAsync(item);

            data.PrimaryHand = item.Id;

            var Result = data.GetRange();

            Assert.AreEqual(2, Result);
        }