Commits

Thomas Weller committed cc127ac

MODIFIED: Removed 'Rollback' attribute for read-only tests

  • Participants
  • Parent commits 60c42df

Comments (0)

Files changed (1)

File CourseManager.Test.MsSqlServer/PersonRepositoryFixture.cs

         #region Tests
 // ReSharper disable InconsistentNaming
 
-        [Test, Rollback, MultipleAsserts, TestsOn("PersonRepository.GetNameList")]
+        [Test, MultipleAsserts, TestsOn("PersonRepository.GetNameList")]
         public void GetNameList_ListOrdering_ReturnsTheExpectedFullNames()
         {
             List<string> names =
             Assert.AreEqual("Zheng, Roger", names.Last());
         }
 
-        [Test, Rollback, MultipleAsserts, TestsOn("PersonRepository.GetNameList")]
+        [Test, MultipleAsserts, TestsOn("PersonRepository.GetNameList")]
         public void GetNameList_NormalOrdering_ReturnsTheExpectedFullNames()
         {
             List<string> names = 
                 _personRepository.RemovePerson(new Person { PersonID = 18 }));
         }
 
-        [Test, Rollback, MultipleAsserts, TestsOn("PersonRepository.GetCourseMembers")]
+        [Test, MultipleAsserts, TestsOn("PersonRepository.GetCourseMembers")]
         [Row(null, typeof(ArgumentNullException))]
         [Row("", typeof(ArgumentException))]
         [Row("NotExistingCourse", typeof(ArgumentException))]
             Assert.IsInstanceOfType(expectedInnerExceptionType, exception.InnerException);
         }
 
-        [Test, Rollback, MultipleAsserts, TestsOn("PersonRepository.GetCourseMembers")]
+        [Test, MultipleAsserts, TestsOn("PersonRepository.GetCourseMembers")]
         public void GetCourseMembers_WhenGivenAnExistingCourse_ReturnsListOfStudents()
         {
             List<Person> persons = _personRepository.GetCourseMembers("Macroeconomics");