コード例 #1
0
        public void SaveExceptionToDatabase_WithNullTransaction_ThrowsException()
        {
            // Arrange
            var provider = new FakeAspNetSqlLoggingProvider();

            // Act
            provider.Public_SaveExceptionToDatabase(null, new Exception(), 1, 1);
        }
コード例 #2
0
        public void Public_SaveExceptionToDatabase_WithNullException_ThrowsException()
        {
            // Arrange
            var provider = new FakeAspNetSqlLoggingProvider();

            Exception invalidException = null;

            // To bad, we can't create a Transaction, but atleast we get code coverage.
            SqlTransaction invalidTransaction = null;

            // Act
            provider.Public_SaveExceptionToDatabase(invalidTransaction, invalidException, 1, 1);
        }