Beispiel #1
0
        public void Model_Score_AddMonsterToList_Two_With_Valid_Should_Pass()
        {
            var myAdd  = DefaultModels.MonsterDefault();
            var myData = new Score();

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

            var Actual   = myData.MonstersKilledList;
            var myValue  = "Name , Description , Level : 1 , Total Experience : 0 , Unique Item : None\n";
            var Expected = myValue + myValue;

            // Validate the controller can stand up and has a Title
            Assert.AreEqual(Expected, Actual, TestContext.CurrentContext.Test.Name);
        }
        public void Model_Score_AddMonsterToList_With_Null_Add_Should_Skip()
        {
            var myAdd  = DefaultModels.MonsterDefault();
            var myData = new Score();

            myData.AddMonsterToList(null);

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

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