AppDomainUnloadedExceptionFixture.cs 949 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net;
  5. using System.Text;
  6. using NUnit.Framework;
  7. namespace CassiniDev.NUnitFixtures.Tests
  8. {
  9. /// <summary>
  10. /// Some runners like NUnit register an appdomainunloaded exception being thrown out of cassinidev/webdev.webserver/cassini
  11. /// when shutting down the test that fails otherwise successful tests. The goal is to provide yet another advantage over the
  12. /// other implementations by eliminating this exception
  13. /// </summary>
  14. [TestFixture]
  15. public class AppDomainUnloadedExceptionFixture : CassiniDevNUnitFixture
  16. {
  17. // we are just going to run the base test repeatedly
  18. [Test]
  19. public void Test2()
  20. {
  21. Test();
  22. Test();
  23. Test();
  24. }
  25. [Test]
  26. public void Test3()
  27. {
  28. Test2();
  29. Test2();
  30. Test2();
  31. }
  32. }
  33. }