Thing 2.0: CultLib pin to 4c9af401 (member rows), whole-value contract lists, resolve on any thread #11
3 changed files with 3 additions and 3 deletions
C# tests: ImmutableArray has Length
commit
089be2164b
|
|
@ -55,7 +55,7 @@ public sealed class DeepTreeTests
|
|||
var wide = new SurfaceDocument("provider.a", "wide", 1, "wide", Boxed("root", children.ToArray()), new List<CommandDecl>());
|
||||
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)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue