Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
<PackageVersion Include="CodeOfChaos.GeneratorTools" Version="2.2.1" />
<PackageVersion Include="CodeOfChaos.Testing.TUnit" Version="0.16.2" />
<PackageVersion Include="FastEndpoints" Version="7.1.1" />
<PackageVersion Include="InfiniLore.InfiniFrame" Version="0.1.0-preview.14" />
<PackageVersion Include="InfiniLore.InfiniFrame.Blazor" Version="0.1.0-preview.14" />
<PackageVersion Include="InfiniLore.InfiniFrame.BlazorWebView" Version="0.1.0-preview.14" />
<PackageVersion Include="InfiniLore.InfiniFrame.WebServer" Version="0.1.0-preview.14" />
<PackageVersion Include="InfiniLore.Lucide" Version="0.554.0" />
<PackageVersion Include="InfiniLore.InfiniFrame" Version="0.1.0-preview.22" />
<PackageVersion Include="InfiniLore.InfiniFrame.Blazor" Version="0.1.0-preview.22" />
<PackageVersion Include="InfiniLore.InfiniFrame.BlazorWebView" Version="0.1.0-preview.22" />
<PackageVersion Include="InfiniLore.InfiniFrame.WebServer" Version="0.1.0-preview.22" />
<PackageVersion Include="InfiniLore.Lucide" Version="0.555.0" />
<PackageVersion Include="IsExternalInit" Version="1.0.3" />
<PackageVersion Include="JetBrains.Annotations" Version="2025.2.4" />
<PackageVersion Include="Microsoft.AspNetCore.Components" Version="10.0.0" />
Expand Down Expand Up @@ -65,8 +65,8 @@
<PackageVersion Include="Serilog.Sinks.BrowserConsole" Version="8.0.0" />
<PackageVersion Include="Serilog.Sinks.Console" Version="6.1.1" />
<PackageVersion Include="Serilog.Sinks.Debug" Version="3.0.0" />
<PackageVersion Include="TUnit" Version="1.3.9" />
<PackageVersion Include="TUnit.Core" Version="1.3.9" />
<PackageVersion Include="TUnit" Version="1.3.15" />
<PackageVersion Include="TUnit.Core" Version="1.3.15" />
<PackageVersion Include="YamlDotNet" Version="16.3.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ public async Task CountShouldReturnExpected() {
Stream[] streamArray = streams.ToArray();

// Assert
await Assert.That(streamArray).HasCount().GreaterThanOrEqualTo(4);
await Assert.That(streamArray).Count().IsGreaterThanOrEqualTo(4);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public async Task TryGetFileNames_ReturnsExpected() {
// Assert
await Assert.That(fileNames)
.IsNotNull()
.HasCount().GreaterThanOrEqualTo(2);
.Count().IsGreaterThanOrEqualTo(2);

await Assert.That(fileNames)
.Contains(filePath => filePath == "bold.xml");
Expand All @@ -89,7 +89,7 @@ public async Task TryGetXmlMdTestDataAsync_ReturnsDataSet(string fileName, int m
// Assert
await Assert.That(data)
.IsNotNull()
.HasCount().GreaterThanOrEqualTo(minimumExpectedCount);
.Count().IsGreaterThanOrEqualTo(minimumExpectedCount);
}

[Test]
Expand All @@ -104,7 +104,7 @@ public async Task TryGetXmlMdTestData_ReturnsDataSet(string fileName, int minimu
// Assert
await Assert.That(data)
.IsNotNull()
.HasCount().GreaterThanOrEqualTo(minimumExpectedCount);
.Count().IsGreaterThanOrEqualTo(minimumExpectedCount);
}

[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public async Task DeserializeFromStreamAsync_ShouldBuildCorrectTree() {
await Assert.That(linkNode.Href).IsEqualTo("https://example.com");

List<IMdSyntaxNode> children = linkNode.GetChildren().ToList();
await Assert.That(children).HasCount().EqualTo(2);
await Assert.That(children).Count().IsEqualTo(2);

IMdSyntaxNode firstChild = children[0];
await Assert.That(firstChild).IsNotNull();
Expand Down Expand Up @@ -149,7 +149,7 @@ public async Task DeserializeFromFileAsync_ShouldBuildCorrectTree() {
await Assert.That(linkNode.Href).IsEqualTo("https://example.com");

List<IMdSyntaxNode> children = linkNode.GetChildren().ToList();
await Assert.That(children).HasCount().EqualTo(2);
await Assert.That(children).Count().IsEqualTo(2);

IMdSyntaxNode firstChild = children[0];
await Assert.That(firstChild).IsNotNull();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public async Task DeserializeFromStreamAsync_ShouldBuildCorrectTree() {
await Assert.That(listNode.Href).IsEqualTo("https://example.com");

List<IMdSyntaxNode> children = listNode.GetChildren().ToList();
await Assert.That(children).HasCount(2);
await Assert.That(children).Count().IsEqualTo(2);

IMdSyntaxNode firstChild = children[0];
await Assert.That(firstChild).IsNotNull();
Expand Down Expand Up @@ -132,7 +132,7 @@ public async Task DeserializeFromFileAsync_ShouldBuildCorrectTree() {
await Assert.That(listNode.Href).IsEqualTo("https://example.com");

List<IMdSyntaxNode> children = listNode.GetChildren().ToList();
await Assert.That(children).HasCount(2);
await Assert.That(children).Count().IsEqualTo(2);

IMdSyntaxNode firstChild = children[0];
await Assert.That(firstChild).IsNotNull();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public async Task SerializeDeserializeTest_IntoArray() {
// Assert
await Assert.That(deserializedData)
.IsNotEmpty()
.HasCount(3)
.IsNotNull();
.IsNotNull()
.Count().IsEqualTo(3);

await Assert.That(deserializedData![0]).IsEqualTo(TestEntry);
await Assert.That(deserializedData[1]).IsEqualTo(TestEntry);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public async Task TryGetTitle(string input) {
bool result = mod.TryGetTitle(out string? title);

// Assert
await Assert.That(mod.Attributes).HasCount(1);
await Assert.That(mod.Attributes).Count().IsEqualTo(1);

await Assert.That(mod.Attributes["title"]).IsEqualTo(new Range(7, 16));
await Assert.That(result).IsTrue();
Expand All @@ -38,7 +38,7 @@ public async Task GetFit(string input) {
bool result = mod.TryGetFit(out bool fit);

// Assert
await Assert.That(mod.Attributes).HasCount(1);
await Assert.That(mod.Attributes).Count().IsEqualTo(1);

await Assert.That(mod.Attributes["fit"]).IsEqualTo(new Range(4, 4));
await Assert.That(result).IsTrue();
Expand All @@ -57,7 +57,7 @@ public async Task TryGetSize(string input) {
bool result = mod.TryGetSize(out (int Width, int Height) size);

// Assert
await Assert.That(mod.Attributes).HasCount(1);
await Assert.That(mod.Attributes).Count().IsEqualTo(1);

await Assert.That(mod.Attributes["size"]).IsEqualTo(new Range(6, 13));
await Assert.That(result).IsTrue();
Expand All @@ -74,7 +74,7 @@ public async Task Multiple(string input) {
// Act

// Assert
await Assert.That(mod.Attributes).HasCount(3);
await Assert.That(mod.Attributes).Count().IsEqualTo(3);

await Assert.That(mod.Attributes["size"]).IsEqualTo(new Range(6, 13));
await Assert.That(mod.TryGetSize(out (int Width, int Height) size)).IsTrue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task TryGetAttributeValue(string input, int count, string[][] expec
MdSyntaxNodeModifier mod = MdSyntaxNodeModifier.FromString(input);

// Assert
await Assert.That(mod.Attributes).HasCount(count);
await Assert.That(mod.Attributes).Count().IsEqualTo(count);

await Parallel.ForEachAsync(expectedOutput, async (expected, _) => {
string attributeKey = expected.First();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public async Task StoreCachedChildrenByType_ShouldCreateCorrectCache(MdSyntaxTre

// Assert
await Assert.That(result).IsTrue();
await Assert.That(cachedChildren).HasCount(expectedChildren.Length);
await Assert.That(cachedChildren).Count().IsEqualTo(expectedChildren.Length);

for (int i = 0; i < expectedChildren.Length; i++) {
IMdSyntaxNode cached = cachedChildren![i];
Expand Down