Exemplo n.º 1
0
        public void ShouldNotHaveExceptionWhereThereIsntOne()
        {
            LoggingTarget target = CreateTarget();

            target.DoSomethingElse("hey there");
            AssertContains("Exception: @@BEGIN EXCEPTION@@@@END EXCEPTION@@");
        }
Exemplo n.º 2
0
        public void ShouldDefaultTo0ForEventId()
        {
            LoggingTarget target = CreateTarget();

            target.DoSomethingElse("boo!");
            AssertContains("Event ID: 0\r\n");
        }
Exemplo n.º 3
0
        public void ShouldNotReportReturnValueWhenTargetMethodIsVoid()
        {
            LoggingTarget target = CreateTarget();

            target.DoSomethingElse("dummy");
            AssertContains(string.Format("Return value: {0}", Environment.NewLine));
        }