CloudWatchLogsAppender.Tests.LogsEventParserJsonTests.NothingRecognizableShouldProduceCount1 C# (CSharp) Method

NothingRecognizableShouldProduceCount1() private method

private NothingRecognizableShouldProduceCount1 ( ) : void
return void
        public void NothingRecognizableShouldProduceCount1()
        {
            var parser = new LogsEventMessageParser();

            for (int i = 0; i < 2; i++)
            {
                var parsedData = parser.Parse("{message: \"A tick!\", }");

                var passes = 0;
                foreach (var r in parsedData)
                {
                    Assert.AreEqual("unspecified", r.StreamName);
                    Assert.AreEqual("A tick!", r.Message);
                    Assert.AreEqual(null, r.Timestamp);
                    Assert.AreEqual("unspecified", r.GroupName);

                    passes++;
                }
                Assert.AreEqual(1, passes);
            }
        }