Caching: README section on element ids; the hex refusal names the derived form for readable ids
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0e964f45ac
commit
e3f497197d
3 changed files with 33 additions and 1 deletions
|
|
@ -135,6 +135,13 @@ namespace GameCult.Caching.Tests
|
|||
Assert.Throws<CultElementIdException>(() => Assign(grid, "r", deterministic: false));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TheHexRefusalNamesTheDerivedFormForReadableIds()
|
||||
{
|
||||
var refusal = Assert.Throws<CultElementIdException>(() => Assign(new HHasIds { Items = { new EIded { Id = "root" } } }, "r", deterministic: false))!;
|
||||
Assert.That(refusal.Message, Does.Contain("12 lowercase hex").And.Contain("[CultElementId(nameof(Member))]"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ARandomIdMustBeTwelveLowercaseHexCharactersAndADerivedIdNeedOnlyBeText()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue