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"); }
public void EmptyContentTest() { IReceivedMessageAnalyzer analyzer = new ReceivedMessageAnalyzer("", LogMessage); }
public void NullContentTest() { IReceivedMessageAnalyzer analyzer = new ReceivedMessageAnalyzer(null, LogMessage); }