diff --git a/src/SQLCover/SQLCover/CodeCoverage.cs b/src/SQLCover/SQLCover/CodeCoverage.cs index d521db0..35f472a 100644 --- a/src/SQLCover/SQLCover/CodeCoverage.cs +++ b/src/SQLCover/SQLCover/CodeCoverage.cs @@ -197,7 +197,7 @@ private void RunProcess(string exe, string args, string workingDir) private void GenerateResults(List filter, List xml) { var batches = _source.GetBatches(filter); - _result = new CoverageResult(batches, xml, _databaseName, _source.GetWarnings()); + _result = new CoverageResult(batches, xml, _databaseName); } public CoverageResult Results() diff --git a/src/SQLCover/SQLCover/CoverageResult.cs b/src/SQLCover/SQLCover/CoverageResult.cs index 69e3d50..e9f12da 100644 --- a/src/SQLCover/SQLCover/CoverageResult.cs +++ b/src/SQLCover/SQLCover/CoverageResult.cs @@ -50,9 +50,7 @@ public CoverageResult(IEnumerable batches, List xml, string datab CoveredStatementCount = _batches.Sum(p => p.CoveredStatementCount); StatementCount = _batches.Sum(p => p.StatementCount); HitCount = _batches.Sum(p => p.HitCount); - - Warnings = warnings; - + } diff --git a/src/SQLCover/SQLCover/Properties/AssemblyInfo.cs b/src/SQLCover/SQLCover/Properties/AssemblyInfo.cs index 8ae632f..89c5eb1 100644 --- a/src/SQLCover/SQLCover/Properties/AssemblyInfo.cs +++ b/src/SQLCover/SQLCover/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ -111using System.Reflection; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/SQLCover/test/SQLCover.IntegrationTests/DatabaseSource_IntegrationTests.cs b/src/SQLCover/test/SQLCover.IntegrationTests/DatabaseSource_IntegrationTests.cs index aef8872..b3200e1 100644 --- a/src/SQLCover/test/SQLCover.IntegrationTests/DatabaseSource_IntegrationTests.cs +++ b/src/SQLCover/test/SQLCover.IntegrationTests/DatabaseSource_IntegrationTests.cs @@ -68,7 +68,7 @@ public void Doesnt_Die_When_Finding_Encrypted_Stored_Procedures() exec sp_executesql N'create procedure enc with encryption as select 100;' -end"); +end", 15); var source = new DatabaseSourceGateway(databaseGateway); var batches = source.GetBatches(null); @@ -95,7 +95,7 @@ public void Shows_Warnings_When_Definition_Not_Available() exec sp_executesql N'create procedure enc with encryption as select 100;' -end"); +end", 15); var source = new DatabaseSourceGateway(databaseGateway); var warnings = source.GetWarnings(); Assert.IsTrue(