Exemplo n.º 1
0
        public void It_Returns_The_Description_Format_With_The_Sole_Level_Threshold()
        {
            //--arrange
            var achievement         = new AchievementWithOneLevel(_dataContext);
            var expectedDescription = string.Format(achievement.DescriptionFormat, achievement.LevelThresholds.First().Value);

            //--act
            var description = achievement.Description;

            //--assert
            Assert.That(description, Is.EqualTo(expectedDescription));
        }
Exemplo n.º 2
0
        public void It_Returns_The_Description_Format_With_The_Sole_Level_Threshold()
        {
            //--arrange
            var achievement = new AchievementWithOneLevel(_dataContext);
            var expectedDescription = string.Format(achievement.DescriptionFormat, achievement.LevelThresholds.First().Value);

            //--act
            var description = achievement.Description;

            //--assert
            Assert.That(description, Is.EqualTo(expectedDescription));
        }