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