コード例 #1
0
        public void BackgroundMethodWithLoggingAndINPC_ExceptionThrown_IsLoggedProperly()
        {
            var c = new AsyncLoggedClass();
            c.BackgroundException();
            Thread.Sleep( 1000 );

            string output = OutputString.ToString();

            StringAssert.Contains("exception occurred", output );
        }
コード例 #2
0
        public void BackgroundMethodWithLoggingAndINPC_ExceptionThrown_IsLoggedProperly()
        {
            var c = new AsyncLoggedClass();

            c.BackgroundException();
            Thread.Sleep(1000);

            string output = OutputString.ToString();

            StringAssert.Contains("exception occurred", output);
        }