예제 #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");
		}