Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -19,7 +19,8 @@ public class SamplesPublicFixtureTests
|
||||
"repro.sh"
|
||||
];
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void ManifestExistsAndIsSorted()
|
||||
{
|
||||
var manifestPath = Path.Combine(SamplesPublicRoot, "manifest.json");
|
||||
@@ -27,6 +28,7 @@ public class SamplesPublicFixtureTests
|
||||
|
||||
using var stream = File.OpenRead(manifestPath);
|
||||
using var doc = JsonDocument.Parse(stream);
|
||||
using StellaOps.TestKit;
|
||||
doc.RootElement.ValueKind.Should().Be(JsonValueKind.Array);
|
||||
|
||||
var keys = doc.RootElement.EnumerateArray()
|
||||
@@ -37,7 +39,8 @@ public class SamplesPublicFixtureTests
|
||||
keys.Should().BeInAscendingOrder(StringComparer.Ordinal);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void SamplesPublicEntriesMatchManifestHashes()
|
||||
{
|
||||
var manifestPath = Path.Combine(SamplesPublicRoot, "manifest.json");
|
||||
|
||||
Reference in New Issue
Block a user