Fix audit findings for coverage, architecture checks, and XML docs
This commit is contained in:
@@ -11,16 +11,25 @@ namespace ZB.MOM.WW.CBDD.Tests
|
||||
{
|
||||
private const string DbPath = "nullable_string_id.db";
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableStringIdTests"/> class.
|
||||
/// </summary>
|
||||
public NullableStringIdTests()
|
||||
{
|
||||
if (File.Exists(DbPath)) File.Delete(DbPath);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Disposes test resources.
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
if (File.Exists(DbPath)) File.Delete(DbPath);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifies the mock counter collection is initialized.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MockCounter_Collection_IsInitialized()
|
||||
{
|
||||
@@ -30,6 +39,9 @@ namespace ZB.MOM.WW.CBDD.Tests
|
||||
db.MockCounters.ShouldNotBeNull();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifies insert and find-by-id operations work for string identifiers.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MockCounter_Insert_And_FindById_Works()
|
||||
{
|
||||
@@ -52,6 +64,9 @@ namespace ZB.MOM.WW.CBDD.Tests
|
||||
stored.Value.ShouldBe(42);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifies update operations work for string identifiers.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MockCounter_Update_Works()
|
||||
{
|
||||
@@ -77,6 +92,9 @@ namespace ZB.MOM.WW.CBDD.Tests
|
||||
updated.Value.ShouldBe(20);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifies delete operations work for string identifiers.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MockCounter_Delete_Works()
|
||||
{
|
||||
@@ -99,6 +117,9 @@ namespace ZB.MOM.WW.CBDD.Tests
|
||||
deleted.ShouldBeNull();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifies query operations work for string identifiers.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MockCounter_Query_Works()
|
||||
{
|
||||
@@ -121,6 +142,9 @@ namespace ZB.MOM.WW.CBDD.Tests
|
||||
highValues[0].Name.ShouldBe("Second");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifies inherited string identifiers are stored and retrieved correctly.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MockCounter_InheritedId_IsStoredCorrectly()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user