예제 #1
0
        public void It_Returns_The_Description_Format_With_Forward_Slashes_Separating_Each_Threshold_In_The_Description()
        {
            //--arrange
            var    achievement         = new AchievementWithThreeLevels(_dataContext);
            string thresholdString     = string.Join("/", achievement.LevelThresholds.Values.ToArray());
            var    expectedDescription = string.Format(achievement.DescriptionFormat, thresholdString);

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

            //--assert
            Assert.That(description, Is.EqualTo(expectedDescription));
        }
예제 #2
0
        public void It_Returns_The_Description_Format_With_Forward_Slashes_Separating_Each_Threshold_In_The_Description()
        {
            //--arrange
            var achievement = new AchievementWithThreeLevels(_dataContext);
            string thresholdString = string.Join("/", achievement.LevelThresholds.Values.ToArray());
            var expectedDescription = string.Format(achievement.DescriptionFormat, thresholdString);

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

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