public void ResetSessionID_OnlyOneSessionIdExist_NoChange()
        {
            var combiner = new MsnHistoryCombiner();
            combiner.MergedMsnLog = new MsnLog();

            combiner.MergedMsnLog.Messages.Add(new MsnMessage(null) { SessionID = 1, UniversalTime = DateTime.Now });
            combiner.MergedMsnLog.Messages.Add(new MsnMessage(null) { SessionID = 1, UniversalTime = DateTime.Now });
            combiner.MergedMsnLog.Messages.Add(new MsnMessage(null) { SessionID = 1, UniversalTime = DateTime.Now });

            combiner.ResetSessionID();

            Assert.AreEqual(1, combiner.MergedMsnLog.Messages[combiner.MergedMsnLog.Messages.Count - 1].SessionID);
        }
        public void ResetSessionID_MultipleAndUnOrdered_ReOrder()
        {
            var combiner = new MsnHistoryCombiner();
            combiner.MergedMsnLog = new MsnLog();

            combiner.MergedMsnLog.Messages.Add(new MsnMessage(null) { SessionID = 1, UniversalTime = DateTime.Now });
            combiner.MergedMsnLog.Messages.Add(new MsnMessage(null) { SessionID = 2, UniversalTime = DateTime.Now });
            combiner.MergedMsnLog.Messages.Add(new MsnMessage(null) { SessionID = 1, UniversalTime = DateTime.Now });
            combiner.MergedMsnLog.Messages.Add(new MsnMessage(null) { SessionID = 2, UniversalTime = DateTime.Now });
            combiner.MergedMsnLog.Messages.Add(new MsnMessage(null) { SessionID = 2, UniversalTime = DateTime.Now });
            combiner.MergedMsnLog.Messages.Add(new MsnMessage(null) { SessionID = 2, UniversalTime = DateTime.Now });
            combiner.MergedMsnLog.Messages.Add(new MsnMessage(null) { SessionID = 3, UniversalTime = DateTime.Now });

            combiner.ResetSessionID();
            Assert.AreEqual(1, combiner.MergedMsnLog.Messages[0].SessionID);
            Assert.AreEqual(4, combiner.MergedMsnLog.Messages[combiner.MergedMsnLog.Messages.Count - 2].SessionID);
            Assert.AreEqual(5, combiner.MergedMsnLog.Messages[combiner.MergedMsnLog.Messages.Count - 1].SessionID);
        }