Brush: name AnimatedSimplexBrush and RadialWaveBrush as arms; pull-failure test asserts the record key
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e518a0b3d1
commit
f448957f3a
2 changed files with 4 additions and 2 deletions
|
|
@ -72,6 +72,8 @@ public class NoiseSettings
|
|||
|
||||
[Union(0, typeof(PowerBrush)),
|
||||
Union(1, typeof(SimplexBrush)),
|
||||
Union(2, typeof(AnimatedSimplexBrush)),
|
||||
Union(3, typeof(RadialWaveBrush)),
|
||||
Serializable, MessagePackObject, JsonObject(MemberSerialization.OptIn)]
|
||||
public abstract class Brush
|
||||
{
|
||||
|
|
|
|||
|
|
@ -175,8 +175,8 @@ public sealed class ShipAuthoringTests
|
|||
Assert.Contains(path, error.Message);
|
||||
// The pull names the record key and schema; the MessagePack failure is its cause.
|
||||
var pull = Assert.IsType<InvalidDataException>(error.InnerException);
|
||||
Assert.Contains("aetheria.hulldata", pull.Message);
|
||||
Assert.Contains(ShipModCatalog.HullKey("mod.skiff").ToString(), pull.Message);
|
||||
Assert.Contains("Record '" + ShipModCatalog.HullKey("mod.skiff") + "'", pull.Message);
|
||||
Assert.Contains("schema", pull.Message);
|
||||
Assert.IsAssignableFrom<MessagePackSerializationException>(pull.InnerException);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue