Ejemplo n.º 1
0
        public void TestRequestDiscard()
        {
            const string path = "path";

            m_Presenter.RequestDiscard(path);
            Assert.AreEqual(1, m_Model.RequestDiscardCount);
            Assert.AreEqual(path, m_Model.RequestDiscardPath);
            // Ensure it created a dialogue
            Assert.AreEqual(1, m_View.DisplayDialogueCount);
        }
        public void TestRequestDiscard()
        {
            m_Presenter.Start();
            const string path  = "path";
            var          entry = new ChangeEntry(path);

            m_Presenter.RequestDiscard(entry);
            Assert.AreEqual(1, m_Model.RequestDiscardCount);
            Assert.AreEqual(path, m_Model.RequestDiscardEntry.Path);
            // Ensure it created a dialogue
            Assert.AreEqual(1, m_View.DisplayDialogueCount);
        }