Exemplo n.º 1
0
        public void ScoreModel_AddToList_InValid_Null_Should_Pass()
        {
            // Arrange
            var dataScore = new ScoreModel();

            // Act
            var result = dataScore.AddToList(null);

            // Reset

            // Assert
            Assert.AreEqual(false, result);
        }
Exemplo n.º 2
0
        public void ScoreModel_AddToList_InValid_Monster_Null_Should_Fail()
        {
            // Arrange
            var          dataScore = new ScoreModel();
            MonsterModel test      = null;
            // Act
            var result = dataScore.AddToList(test);

            // Reset

            // Assert
            Assert.AreEqual(false, result);
        }
Exemplo n.º 3
0
        public void ScoreModel_AddToList_Default_Should_Pass()
        {
            // Arrange
            var dataScore = new ScoreModel();

            var data = new ItemModel
            {
                Name      = "Item1",
                Location  = ItemLocationEnum.Feet,
                Attribute = AttributeEnum.Attack,
                Value     = 1,
                Range     = 2,
                Damage    = 3
            };

            // Act
            var result = dataScore.AddToList(data);

            // Reset

            // Assert
            Assert.AreEqual(true, result);
            Assert.AreNotEqual(string.Empty, dataScore.ItemsDroppedList);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Loads the default ScoreModel data
        /// </summary>
        /// <param name="temp"></param>
        /// <returns></returns>
        public static List <ScoreModel> LoadData(ScoreModel temp)
        {
            ScoreModel scoreTest = new ScoreModel
            {
                Name                  = "First Score",
                Description           = "Test Data",
                RoundCount            = 20,
                ScoreTotal            = 50000,
                ExperienceGainedTotal = 50000,
            };

            #region Adding to score for debugging

            scoreTest.AddToList(DefaultMonsterHelper.DefaultChomper());
            scoreTest.AddToList(DefaultMonsterHelper.DefaultAlarmer());
            scoreTest.AddToList(DefaultMonsterHelper.DefaultPiercingFeedback());
            scoreTest.AddToList(DefaultMonsterHelper.DefaultMassiveStatic());
            scoreTest.AddToList(DefaultMonsterHelper.DefaultKazoom());
            scoreTest.AddToList(DefaultMonsterHelper.DefaultJackhammer());
            scoreTest.AddToList(DefaultMonsterHelper.DefaultShrillBabe());
            scoreTest.AddToList(DefaultMonsterHelper.DefaultYowlingFeline());

            scoreTest.AddToList(DefaultCharacterHelper.DefaultTambourine());
            scoreTest.AddToList(DefaultCharacterHelper.DefaultBassist());
            scoreTest.AddToList(DefaultCharacterHelper.DefaultKeyboardist());
            scoreTest.AddToList(DefaultCharacterHelper.DefaultDrummer());
            scoreTest.AddToList(DefaultCharacterHelper.DefaultGuitarist());
            scoreTest.AddToList(DefaultCharacterHelper.DefaultLeadVocalist());

            scoreTest.AddToList(DefaultItemHelper.DefaultTriangle());
            scoreTest.AddToList(DefaultItemHelper.DefaultBunnySlippers());
            scoreTest.AddToList(DefaultItemHelper.DefaultComfySneakers());
            scoreTest.AddToList(DefaultItemHelper.DefaultLuckySocks());
            scoreTest.AddToList(DefaultItemHelper.DefaultAthleticSocks());
            scoreTest.AddToList(DefaultItemHelper.DefaultTemporaryTattoo());
            scoreTest.AddToList(DefaultItemHelper.DefaultMoodRing());
            scoreTest.AddToList(DefaultItemHelper.DefaultRing());
            scoreTest.AddToList(DefaultItemHelper.DefaultCoolOutfit());
            scoreTest.AddToList(DefaultItemHelper.DefaultBandHoodie());
            #endregion

            var datalist = new List <ScoreModel>()
            {
                scoreTest,

                new ScoreModel {
                    Name        = "Second Score",
                    Description = "Test Data",
                }
            };

            return(datalist);
        }