public void ValidEntriesShouldReturnListOfCourseInstances() { //Arrange var fixture = new StringToCourseConvertFixture() .WithXValidEntries(1); //Act var result = fixture.ExecuteConvert(); //Assert Assert.IsType <List <CourseInstance> >(result); }
public void OneValidEntryShouldReturnListWithOneCourseInstance() { //Arrange var fixture = new StringToCourseConvertFixture() .WithXValidEntries(1); int expected = 1; //Act var result = fixture.ExecuteConvert(); //Assert Assert.Equal(expected, result.Count); }
public void TenValidObjectsShouldReturnListWithTenCourseInstances() { //Arrange var fixture = new StringToCourseConvertFixture() .WithXValidObjects(10); int expected = 10; //Act var result = fixture.ExecuteConverToCourse(); //Assert Assert.Equal(expected, result.Count); }
public void TenValidEntriesShouldReturnListWithTenStrings() { //Arrange var fixture = new StringToCourseConvertFixture() .WithXValidEntries(10); int expected = 10; //Act var result = fixture.ExecuteSplitToObject(); //Assert Assert.Equal(expected, result.Count); }