diff --git a/tests/GameCult.Thing.Contract.Tests/NameSetTests.cs b/tests/GameCult.Thing.Contract.Tests/NameSetTests.cs index fa05164..6400fe0 100644 --- a/tests/GameCult.Thing.Contract.Tests/NameSetTests.cs +++ b/tests/GameCult.Thing.Contract.Tests/NameSetTests.cs @@ -23,6 +23,10 @@ public sealed class NameSetTests var entry = Wire.Registry.GetRequired(t).ToCatalogEntry(); return entry.Members.Select(m => $"{entry.SchemaId}\t{m.Slot}\t{m.MemberName}\t{m.TypeName}"); }).ToArray(); + if (Environment.GetEnvironmentVariable("THING_PARITY_WRITE") == "1") + File.WriteAllText(ParityTests.SourceParityPath("catalog-members.tsv"), string.Join(" +", actual) + " +"); Assert.That(actual, Is.EqualTo(Lines("catalog-members.tsv"))); Assert.That(actual, Has.Length.GreaterThan(20)); } diff --git a/tests/GameCult.Thing.Contract.Tests/ParityTests.cs b/tests/GameCult.Thing.Contract.Tests/ParityTests.cs index 5aa8d95..4481e05 100644 --- a/tests/GameCult.Thing.Contract.Tests/ParityTests.cs +++ b/tests/GameCult.Thing.Contract.Tests/ParityTests.cs @@ -15,7 +15,7 @@ public sealed class ParityTests { private static string ParityPath(string file) => Path.Combine(AppContext.BaseDirectory, "parity", file); - private static string SourceParityPath(string file) + internal static string SourceParityPath(string file) { for (var here = new DirectoryInfo(AppContext.BaseDirectory); here != null; here = here.Parent) { diff --git a/tests/thing-contract-parity/written-by-cs.cc b/tests/thing-contract-parity/written-by-cs.cc index 7167c76..d97b2db 100644 Binary files a/tests/thing-contract-parity/written-by-cs.cc and b/tests/thing-contract-parity/written-by-cs.cc differ