~nunit-core/nunitv2/2.5

« back to all changes in this revision

Viewing changes to src/ClientUtilities/tests/DomainManagerTests.cs

  • Committer: Charlie Poole
  • Author(s): mfenniak
  • Date: 2010-12-05 00:33:00 UTC
  • Revision ID: charlie@nunit.org-20101205003300-oif6cypjyknojpuy
Fix exception on trying to unload an unloaded AppDomain

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
                DomainManager.GetCommonAppBase(assemblies));
62
62
        }
63
63
 
 
64
        [Test]
 
65
        public void UnloadUnloadedDomain()
 
66
        {
 
67
            AppDomain domain = AppDomain.CreateDomain("DomainManagerTests-domain");
 
68
            AppDomain.Unload(domain);
 
69
 
 
70
            DomainManager manager = new DomainManager();
 
71
            manager.Unload(domain);
 
72
        }
 
73
 
64
74
        /// <summary>
65
75
        /// Take a valid Linux path and make a valid windows path out of it
66
76
        /// if we are on Windows. Change slashes to backslashes and, if the