Fix audit findings for coverage, architecture checks, and XML docs
This commit is contained in:
@@ -17,6 +17,9 @@ namespace ZB.MOM.WW.CBDD.Tests
|
||||
private readonly string _testFile;
|
||||
private readonly Shared.TestDbContext _db;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ScanTests"/> class.
|
||||
/// </summary>
|
||||
public ScanTests()
|
||||
{
|
||||
_testFile = Path.Combine(Path.GetTempPath(), $"scan_tests_{Guid.NewGuid()}.db");
|
||||
@@ -27,6 +30,9 @@ namespace ZB.MOM.WW.CBDD.Tests
|
||||
_db = new Shared.TestDbContext(_testFile);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Executes Dispose.
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
_db.Dispose();
|
||||
@@ -35,6 +41,9 @@ namespace ZB.MOM.WW.CBDD.Tests
|
||||
if (File.Exists(wal)) File.Delete(wal);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Executes Scan_FindsMatchingDocuments.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void Scan_FindsMatchingDocuments()
|
||||
{
|
||||
@@ -53,6 +62,9 @@ namespace ZB.MOM.WW.CBDD.Tests
|
||||
results.ShouldContain(d => d.Name == "Charlie");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Executes Repro_Insert_Loop_Hang.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void Repro_Insert_Loop_Hang()
|
||||
{
|
||||
@@ -65,6 +77,9 @@ namespace ZB.MOM.WW.CBDD.Tests
|
||||
_db.SaveChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Executes ParallelScan_FindsMatchingDocuments.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ParallelScan_FindsMatchingDocuments()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user