コード例 #1
0
		public override void TestTearDown()
		{
			m_settings = null;
			m_importWizard.Dispose();
			m_importWizard = null;
			m_styleSheet = null;

			base.TestTearDown();
		}
コード例 #2
0
		public override void TestSetup()
		{
			base.TestSetup();
			m_importWizard = new ImportWizardWrapper(m_scr, m_styleSheet);
			MethodInfo createHandle = m_importWizard.ScrMappings.GetType().GetMethod("CreateHandle",
				BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
			createHandle.Invoke(m_importWizard.ScrMappings, null);
			m_settings = (IScrImportSet)ReflectionHelper.GetField(m_importWizard, "m_settings");
			m_ptHelper.Projects.Clear();

			m_mockParatextHelper = MockRepository.GenerateMock<IParatextHelper>();
			m_ptHelper.m_loadProjectMappingsImpl = m_mockParatextHelper;
		}