Example #1
0
        public void Model_Score_AddCharacterToList_Two_With_Valid_Should_Pass()
        {
            var myAdd  = DefaultModels.CharacterDefault();
            var myData = new Score();

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

            var Actual   = myData.CharacterAtDeathList;
            var myValue  = "Name , Description , Level : 1 , Total Experience : 0 , Speed : 1 , Defense : 1 , Attack : 1 , CurrentHealth : 1 , MaxHealth : 1 , Items : Head : None , Necklass : None , PrimaryHand : None , OffHand : None , RightFinger : None , LeftFinger : None , Feet : None , Damage : 0\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_AddCharacterToList_With_Null_Add_Should_Skip()
        {
            var myAdd  = DefaultModels.CharacterDefault();
            var myData = new Score();

            myData.AddCharacterToList(null);

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

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