예제 #1
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// test setup
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public override void TestSetup()
		{
			base.TestSetup();

			ILangProject lp = Cache.LangProject;

			// Our export test comparisons will assume the WS's are NOT in this order:
			IList<IWritingSystem> currentAnalWS = Cache.ServiceLocator.WritingSystems.CurrentAnalysisWritingSystems;
			Assert.AreEqual("en", currentAnalWS[0].Id);
			Assert.AreEqual("de", currentAnalWS[1].Id);
			Assert.AreEqual("es", currentAnalWS[2].Id);

			// save the default vernacular ws
			m_wsVern = Cache.DefaultVernWs;

			// Create the book of Genesis in the database
			m_book = AddBookToMockedScripture(1, "Genesis");
			AddTitleToMockedBook(m_book, "Genesis");

			// Create the book of Philemon in the database
			m_Philemon = AddBookToMockedScripture(57, "Philemon");
			AddTitleToMockedBook(m_Philemon, "Philemon");

			// initialize the exporter class
			m_exporter = new DummyExportUsfm(Cache);
			m_exporter.SetContext(m_book);
		}
예제 #2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		///
		/// </summary>
		/// <remarks>This method is called after each test</remarks>
		/// ------------------------------------------------------------------------------------
		public override void TestTearDown()
		{
			m_exporter.Dispose();
			m_exporter = null;
			m_book = null;
			m_Philemon = null;

			base.TestTearDown();
		}