Ejemplo n.º 1
0
        public void should_allow_asserting_on_errors()
        {
            var logSpy          = new LoggingSpy();
            var expectedContent = new { Some = "Content" };

            logSpy.Logger.Error(expectedContent);

            Assert.True(logSpy.DidError(expectedContent));
        }
Ejemplo n.º 2
0
        public void should_allow_exceptions_to_be_matched()
        {
            var logSpy  = new LoggingSpy();
            var content = new Exception("Something went wrong");

            logSpy.Logger.Error(content);

            Assert.True(logSpy.DidError(content));
        }