Пример #1
0
        public void Model_Score_AddItemToList_Two_With_Valid_Should_Pass()
        {
            var myAdd  = DefaultModels.ItemDefault(ItemLocationEnum.Feet, AttributeEnum.Attack);
            var myData = new Score();

            // do it Twice...
            myData.AddItemToList(myAdd);
            myData.AddItemToList(myAdd);

            var Actual   = myData.ItemsDroppedList;
            var myValue  = "Item for Feet , Auto Created for Feet with Attack+1 , Damage : 1 , Range : 1\n";
            var Expected = myValue + myValue;

            // Validate the controller can stand up and has a Title
            Assert.AreEqual(Expected, Actual, TestContext.CurrentContext.Test.Name);
        }
Пример #2
0
        public void Model_Score_AddItemToList_With_Null_Score_Should_Skip()
        {
            var myAdd  = DefaultModels.ItemDefault(ItemLocationEnum.Feet, AttributeEnum.Attack);
            var myData = new Score();

            myData.AddItemToList(null);

            var    Actual   = myData.ItemsDroppedList;
            string Expected = null;

            // Validate the controller can stand up and has a Title
            Assert.AreEqual(Expected, Actual, TestContext.CurrentContext.Test.Name);
        }