Пример #1
0
        public void TestGetAgeRange(string ageRange, string expectedResult)
        {
            var courseVariantViewModel = new CourseDetailsViewModel {
                AgeRange = ageRange
            };
            var result = courseVariantViewModel.GetAgeRange();

            result.Should().Be(expectedResult);
        }
        public void GetAgeRange_should_be_empty(string input)
        {
            var param = new CourseDetailsViewModel {
                AgeRange = input
            };

            var result = param.GetAgeRange();

            Assert.IsTrue(result == IncorrectResult);
        }