Пример #1
0
 public void ShowRoot_MaintainsSelectedWsInEmptyText()
 {
     using (var interlinMaster = new TestInterlinMaster(m_mediator, m_sttEmptyButWithWs))
     {
         interlinMaster.TestShowRecord();                 // SUT
     }
     Assert.That(m_sttEmptyButWithWs.IsEmpty, "Our text should still be empty");
     Assert.AreEqual(m_wsOtherVern.Handle, m_sttEmptyButWithWs.MainWritingSystem, "The WS for the text should still be the other vernacular");
 }
Пример #2
0
 public void ShowRoot_ReplacesGlobalDefaultWsWithDefaultVernInEmptyText()
 {
     using (var interlinMaster = new TestInterlinMaster(m_mediator, m_sttNoExplicitWs))
     {
         interlinMaster.TestShowRecord();                 // SUT
     }
     Assert.That(m_sttNoExplicitWs.IsEmpty, "Our text should still be empty");
     Assert.AreEqual(m_wsDefaultVern.Handle, m_sttNoExplicitWs.MainWritingSystem, "The WS for the text should now be the default vernacular");
 }
Пример #3
0
		public void ShowRoot_ReplacesGlobalDefaultWsWithDefaultVernInEmptyText()
		{
			using(var interlinMaster = new TestInterlinMaster(m_mediator, m_sttNoExplicitWs))
			{
				interlinMaster.TestShowRecord(); // SUT
			}
			Assert.That(m_sttNoExplicitWs.IsEmpty, "Our text should still be empty");
			Assert.AreEqual(m_wsDefaultVern.Handle, m_sttNoExplicitWs.MainWritingSystem, "The WS for the text should now be the default vernacular");
		}
Пример #4
0
		public void ShowRoot_MaintainsSelectedWsInEmptyText()
		{
			using(var interlinMaster = new TestInterlinMaster(m_mediator, m_sttEmptyButWithWs))
			{
				interlinMaster.TestShowRecord(); // SUT
			}
			Assert.That(m_sttEmptyButWithWs.IsEmpty, "Our text should still be empty");
			Assert.AreEqual(m_wsOtherVern.Handle, m_sttEmptyButWithWs.MainWritingSystem, "The WS for the text should still be the other vernacular");
		}