diff --git a/tests/GameCult.Thing.Contract.Tests/DeepTreeTests.cs b/tests/GameCult.Thing.Contract.Tests/DeepTreeTests.cs index 5914a7d..465173c 100644 --- a/tests/GameCult.Thing.Contract.Tests/DeepTreeTests.cs +++ b/tests/GameCult.Thing.Contract.Tests/DeepTreeTests.cs @@ -55,7 +55,7 @@ public sealed class DeepTreeTests var wide = new SurfaceDocument("provider.a", "wide", 1, "wide", Boxed("root", children.ToArray()), new List()); var bytes = Wire.Write(wide); var decoded = (SurfaceDocument)Wire.Read(typeof(SurfaceDocument), bytes); - Assert.That(((BoxNode)decoded.Root).Children, Has.Count.EqualTo(999)); + Assert.That(((BoxNode)decoded.Root).Children, Has.Length.EqualTo(999)); Assert.That(Convert.ToHexString(Wire.Write(decoded)), Is.EqualTo(Convert.ToHexString(bytes))); } } diff --git a/tests/GameCult.Thing.Contract.Tests/ReadOnlyListTests.cs b/tests/GameCult.Thing.Contract.Tests/ReadOnlyListTests.cs index 34caade..a964edd 100644 --- a/tests/GameCult.Thing.Contract.Tests/ReadOnlyListTests.cs +++ b/tests/GameCult.Thing.Contract.Tests/ReadOnlyListTests.cs @@ -92,7 +92,7 @@ public sealed class ReadOnlyListTests Assert.That(box.Children, Is.Not.SameAs(array)); Assert.That(box.Children is Node[], Is.False, "the held list is the caller's array type"); var boxed = (BoxNode)Builders.Boxed("c", child, other); - Assert.That(boxed.Children, Has.Count.EqualTo(2)); + Assert.That(boxed.Children, Has.Length.EqualTo(2)); foreach (var (door, index, element) in ListParameters()) { diff --git a/tests/GameCult.Thing.Contract.Tests/SlotNodeTests.cs b/tests/GameCult.Thing.Contract.Tests/SlotNodeTests.cs index 2de2537..e6e5381 100644 --- a/tests/GameCult.Thing.Contract.Tests/SlotNodeTests.cs +++ b/tests/GameCult.Thing.Contract.Tests/SlotNodeTests.cs @@ -25,6 +25,6 @@ public sealed class SlotNodeTests var root = (BoxNode)composition.Body; var slot = (SlotNode)root.Children[^1]; Assert.That(slot.Param.Name, Is.EqualTo("body")); - Assert.That(root.Children, Has.Count.EqualTo(3)); + Assert.That(root.Children, Has.Length.EqualTo(3)); } }