예제 #1
0
        public void Can_add_a_complexity_level_template()
        {
            var sut = new ComplexityLevelTemplate { Name = "Default", DisplayName = "Story Points" };

            Assert.IsNotNull(sut);
            Assert.AreEqual("Default", sut.Name);
            Assert.AreEqual("Story Points", sut.DisplayName);
        }
예제 #2
0
        public void Can_add_a_complexity_level_to_a_complexity_level_template()
        {
            var sut = new ComplexityLevelTemplate();
            var complexityLevel = new ComplexityLevel();

            sut.ComplexityLevels.Add(complexityLevel);

            Assert.AreEqual(1, sut.ComplexityLevels.Count);
        }
예제 #3
0
        public void Can_assign_a_complexity_level_template_to_a_board()
        {
            var sut = new Board();
            var complexityLevel = new ComplexityLevelTemplate { Id = 1, Name = "Default" };

            sut.ComplexityLevelTemplate = complexityLevel;

            Assert.AreEqual("Default", sut.ComplexityLevelTemplate.Name);
        }