示例#1
0
        public void NullLogTest()
        {
            IReceivedMessageAnalyzer analyzer = new ReceivedMessageAnalyzer("var x = 10", null);
            var messages = analyzer.GetMessages(DummyMessage.GenerateDummyMessageOneString, "y = 10").ToList();

            List <TraceInfoMessage> expected = new List <TraceInfoMessage>();

            expected.Add(new TraceInfoMessage("dummy description : var x = 10 ", 1));

            Assert.AreEqual(1, messages.Count(), "When both side consists of same number of messages");
            Assert.AreEqual(expected[0], messages[0], "When first messages are equal in info messages");
        }
示例#2
0
 public void EmptyContentTest()
 {
     IReceivedMessageAnalyzer analyzer = new ReceivedMessageAnalyzer("", LogMessage);
 }
示例#3
0
 public void NullContentTest()
 {
     IReceivedMessageAnalyzer analyzer = new ReceivedMessageAnalyzer(null, LogMessage);
 }