예제 #1
0
        public async Task ItemIndexViewModel_GetDefaultItem_Unknown_Should_Fail()
        {
            // Arrange
            await ViewModel.CreateAsync(new ItemModel { Location = ItemLocationEnum.PrimaryHand });

            // Act
            var result = ViewModel.GetDefaultItem(ItemLocationEnum.Unknown);

            // Reset

            // Assert
            Assert.AreEqual(null, result);  // Update returned Pass
        }
예제 #2
0
        public async Task ItemIndexViewModel_GetDefaultItemId_Head_Should_Pass()
        {
            // Arrange
            await ViewModel.CreateAsync(new ItemModel { Location = ItemLocationEnum.Head });

            // Act
            var result = ViewModel.GetDefaultItem(ItemLocationEnum.Head);

            // Reset

            // Assert
            Assert.AreNotEqual(null, result);  // Update returned Pass
        }