refactor(core): harden PluginManifest error model
Addresses code quality review of c082ecf:
- Require takes a literal JSON field name, no more fragile PascalCase->camelCase transform
- Parse_MissingRequiredField_Throws asserts exact message, not substring
- Remove unused using System.Text.Json.Serialization
This commit is contained in:
parent
c082ecf36a
commit
99d2702c13
2 changed files with 7 additions and 9 deletions
|
|
@ -34,7 +34,7 @@ public class PluginManifestTests
|
|||
""";
|
||||
|
||||
var ex = Assert.Throws<PluginManifestException>(() => PluginManifest.Parse(json));
|
||||
Assert.Contains("displayName", ex.Message);
|
||||
Assert.Equal("missing required field: displayName", ex.Message);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue