Skip to content

Commit b52993e

Browse files
Bump the dotnet group with 3 updates (#72)
* Bump the dotnet group with 3 updates Bumps CsCheck from 4.9.1 to 5.0.0 Bumps Markdig from 1.4.1 to 1.5.0 Bumps TUnit from 1.75.0 to 1.76.28 --- updated-dependencies: - dependency-name: CsCheck dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: dotnet - dependency-name: Markdig dependency-version: 1.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dotnet - dependency-name: TUnit dependency-version: 1.76.28 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dotnet ... Signed-off-by: dependabot[bot] <support@github.com> * Use Gen.OneOf for constants: CsCheck 5.0 removed Gen.OneOfConst Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rqqt7UAqoWe6X8yqKe3jXR --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3e32c84 commit b52993e

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎MarkupString.Tests/Ansi/MarkdownRenderTests.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public async Task TextTheVocabularyMarksIsKept()
298298
[Test]
299299
public void PlainTextReadsBackAsItself()
300300
{
301-
var gen = Gen.OneOfConst(Pieces).Array[0, 12].Select(string.Concat);
301+
var gen = Gen.OneOf(Pieces).Array[0, 12].Select(string.Concat);
302302
Check.Sample(gen, text =>
303303
{
304304
var markdown = Render(MarkupText.Plain(text));
@@ -318,7 +318,7 @@ public void PlainTextReadsBackAsItself()
318318
public void StyledTextReadsBackAsItsWords()
319319
{
320320
var styles = new[] { Bold, Italic, AnsiMarkup.Create(strikeThrough: true), AnsiMarkup.Create(bold: true, italic: true) };
321-
var gen = Gen.Select(Gen.OneOfConst(Pieces).Array[1, 4].Select(string.Concat), Gen.Int[-1, styles.Length - 1])
321+
var gen = Gen.Select(Gen.OneOf(Pieces).Array[1, 4].Select(string.Concat), Gen.Int[-1, styles.Length - 1])
322322
.Array[1, 5]
323323
.Select(parts => MarkupText.Join(MarkupText.Plain(" "), parts.Select(part => part.Item2 < 0 ? MarkupText.Plain(part.Item1) : MarkupText.Wrap(styles[part.Item2], part.Item1))));
324324
Check.Sample(gen, text =>

‎MarkupString.Tests/MarkupString.Tests.csproj‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<NoWarn>TUnit0038;TUnitAssertions0002</NoWarn>
99
</PropertyGroup>
1010
<ItemGroup>
11-
<PackageReference Include="CsCheck" Version="4.9.1" />
12-
<PackageReference Include="TUnit" Version="1.75.0" />
11+
<PackageReference Include="CsCheck" Version="5.0.0" />
12+
<PackageReference Include="TUnit" Version="1.76.28" />
1313
<!-- A GitHub-flavoured Markdown reader, so the Markdown tests check what a reader makes of the output
1414
rather than only the characters written. -->
15-
<PackageReference Include="Markdig" Version="1.4.1" />
15+
<PackageReference Include="Markdig" Version="1.5.0" />
1616
<!-- Verify.TUnit carries a floor on TUnit.Core. Bump the two together: if NuGet lifts
1717
TUnit.Core past the TUnit.Engine this project asks for, the split versions fault at
1818
startup with MissingFieldException rather than failing to restore. -->

‎MarkupString.Tests/Properties/RoundTripProperties.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class RoundTripProperties
7474
/// Links are rare (the no-link case is weighted five to one) and cover both kinds, an
7575
/// unsafe scheme, a hint, and a target that needs encoding.
7676
/// </summary>
77-
private static readonly Gen<(string? Url, string? Text, LinkKind Kind)> GenLink = Gen.OneOfConst(
77+
private static readonly Gen<(string? Url, string? Text, LinkKind Kind)> GenLink = Gen.OneOf(
7878
((string?)null, (string?)null, LinkKind.Url),
7979
(null, null, LinkKind.Url),
8080
(null, null, LinkKind.Url),
@@ -105,8 +105,8 @@ public class RoundTripProperties
105105
clear: flag[8]));
106106

107107
private static readonly Gen<IMarkup> GenHtmlMarkup = Gen.Select(
108-
Gen.OneOfConst("b", "i", "u", "s", "send", "div"),
109-
Gen.OneOfConst<string?>(null, null, "class=\"x\"", "href=\"north\" hint=\"Go north\""),
108+
Gen.OneOf("b", "i", "u", "s", "send", "div"),
109+
Gen.OneOf<string?>(null, null, "class=\"x\"", "href=\"north\" hint=\"Go north\""),
110110
(tag, attributes) => (IMarkup)HtmlMarkup.Create(tag, attributes));
111111

112112
private static readonly Gen<MarkupSet> GenSet =
@@ -221,7 +221,7 @@ public void PadWithTruncation_NeverExceedsTheRequestedWidth()
221221
};
222222

223223
Check.Sample(
224-
Gen.Select(GenMarkupText, Gen.Int[0, 60], Gen.OneOfConst('.', '-', '*', ' ')),
224+
Gen.Select(GenMarkupText, Gen.Int[0, 60], Gen.OneOf('.', '-', '*', ' ')),
225225
property, seed: Seed, iter: 5000);
226226
}
227227

0 commit comments

Comments
 (0)