Пример #1
0
        public void GetLogTest()
        {
            List <string> log = new List <string>();

            Loging._instance = Log;
            repository.ReplayAll();
            Log._StartLog();
            Log._WriteLog("раз месага", true, false);
            Log._WriteLog("два месага", false, true);
            log.AddRange(Log._GetLog());
            repository.VerifyAll();
            Assert.AreEqual(2, log.Count);
        }