예제 #1
0
        public void PickItemsPage_GetItemToDisplay_Null_Default_Should_Pass()
        {
            // Arrange

            // Act
            var result = page.GetItemToDisplay(null);

            // Reset

            // Assert
            Assert.NotNull(result);
        }
예제 #2
0
        public void PickItemsPage_GetItemToDisplay_Default_Should_Pass()
        {
            // Arrange
            ItemModel item = new ItemModel
            {
                Name        = "PrimaryHand01",
                Description = "May the force be with you!",
                ImageURI    = "item_sword.png",
                Range       = 5,
                Damage      = 10,
                Value       = 9,
                Location    = ItemLocationEnum.PrimaryHand,
                Attribute   = AttributeEnum.Attack
            };


            // Act
            page.GetItemToDisplay(item);

            // Reset

            // Assert
            Assert.IsTrue(true); // Got to here, so it happened...
        }