diff --git a/src/Generator.Tests/HeaderTestFixture.cs b/src/Generator.Tests/HeaderTestFixture.cs index 346ddcf9..1df3dc3c 100644 --- a/src/Generator.Tests/HeaderTestFixture.cs +++ b/src/Generator.Tests/HeaderTestFixture.cs @@ -30,7 +30,7 @@ namespace Generator.Tests var parser = new Parser(options); var result = parser.ParseHeader(file); - if (!result.Success) + if (result.Kind != ParserResultKind.Success) throw new Exception("Could not parse file: " + file); library = result.Library;