public void ProcessMessageTest()
 {
     ActivityMonitor_Accessor target = new ActivityMonitor_Accessor(); // TODO: Initialize to an appropriate value
     Random rand = new Random();
     bool inDay = true;
     MSG m = new MSG("user", "user", "user", "#chan", "message");
     m.when = DateTime.Today;
     while (inDay)
     {
         target.ProcessMessage(m);
         m.when = m.when.AddSeconds(rand.Next() % 256);
         if (m.when.DayOfYear > DateTime.Today.DayOfYear)
             inDay = false;
     }
     target.WriteStatsToWWW("www");
     Assert.AreEqual(1, 1);
 }
Пример #2
0
        public void ProcessMessageTest()
        {
            ActivityMonitor_Accessor target = new ActivityMonitor_Accessor(); // TODO: Initialize to an appropriate value
            Random rand  = new Random();
            bool   inDay = true;
            MSG    m     = new MSG("user", "user", "user", "#chan", "message");

            m.when = DateTime.Today;
            while (inDay)
            {
                target.ProcessMessage(m);
                m.when = m.when.AddSeconds(rand.Next() % 256);
                if (m.when.DayOfYear > DateTime.Today.DayOfYear)
                {
                    inDay = false;
                }
            }
            target.WriteStatsToWWW("www");
            Assert.AreEqual(1, 1);
        }