public void TestFixtureSetup() { current = new Project(prjName, new Project.Context()); current.AddFile(TestDataUtil.TestConfigFile); current.AddFile(TestDataUtil.TestDllFile); current.AddFile(TestDataUtil.TestMappingFile); current.BuildProject(); }
public void TestFixtureSetup() { prj = QueryPresenterTests.BuildProject(); prj.BuildProject(); }
public void ResetProjectAfterBuilding() { Project resetable = new Project("Resetabble Project"); resetable.AddFile(TestDataUtil.TestConfigFile); resetable.AddFile(TestDataUtil.TestDllFile); resetable.AddFile(TestDataUtil.TestMappingFile); resetable.BuildProject(); Assert.IsTrue(resetable.IsProjectBuilt, "Project was not built"); SerializableTestClassForDomainUnload testUnload = new SerializableTestClassForDomainUnload(); resetable.AppDomain.DomainUnload += new EventHandler(testUnload.AppDomain_DomainUnload); resetable.ResetProject(); Assert.IsFalse(resetable.IsProjectBuilt, "Project was not reset properly"); Assert.IsTrue(testUnload.ProjectAppDomainWasUnloaded, "Project's AppDomain was not unloaded"); Assert.IsNull(resetable.AppDomain, "AppDomain was no released."); resetable.Dispose(); }