示例#1
0
        public void TestRequestingSingleRevision()
        {
            const string revisionId = "123";

            Assert.AreEqual(false, m_Model.IsRevisionSelected);
            Assert.AreEqual(string.Empty, m_Model.SelectedRevisionId);
            m_Model.RequestSingleRevision(revisionId);
            Assert.AreEqual(true, m_Model.IsRevisionSelected);
            Assert.AreEqual(1, m_Provider.RequestedHistoryRevisionCount);
            Assert.AreEqual(revisionId, m_Provider.RequestedHistoryRevisionId);
            Assert.AreEqual(2, m_BusyStatusUpdatedCount);
            Assert.AreEqual(1, m_SelectedRevisionReceivedCount);
        }