コード例 #1
0
        public void ValidEntriesShouldReturnListOfCourseInstances()
        {
            //Arrange
            var fixture = new StringToCourseConvertFixture()
                          .WithXValidEntries(1);

            //Act
            var result = fixture.ExecuteConvert();

            //Assert
            Assert.IsType <List <CourseInstance> >(result);
        }
コード例 #2
0
        public void OneValidEntryShouldReturnListWithOneCourseInstance()
        {
            //Arrange
            var fixture = new StringToCourseConvertFixture()
                          .WithXValidEntries(1);
            int expected = 1;

            //Act
            var result = fixture.ExecuteConvert();

            //Assert
            Assert.Equal(expected, result.Count);
        }
コード例 #3
0
        public void TenValidObjectsShouldReturnListWithTenCourseInstances()
        {
            //Arrange
            var fixture = new StringToCourseConvertFixture()
                          .WithXValidObjects(10);
            int expected = 10;

            //Act
            var result = fixture.ExecuteConverToCourse();

            //Assert
            Assert.Equal(expected, result.Count);
        }
コード例 #4
0
        public void TenValidEntriesShouldReturnListWithTenStrings()
        {
            //Arrange
            var fixture = new StringToCourseConvertFixture()
                          .WithXValidEntries(10);
            int expected = 10;

            //Act
            var result = fixture.ExecuteSplitToObject();

            //Assert
            Assert.Equal(expected, result.Count);
        }