Make EntityPrototypeComponentsTest show the path of a badly formatted file

This commit is contained in:
DrSmugleaf
2021-02-22 14:54:21 +01:00
parent b7dfb58777
commit 41e72e8fc5

View File

@@ -47,7 +47,8 @@ namespace Content.IntegrationTests.Tests.GameObjects.Components
var reader = new StreamReader(file, Encoding.UTF8);
var yamlStream = new YamlStream();
yamlStream.Load(reader);
Assert.DoesNotThrow(() => yamlStream.Load(reader), "Error while parsing yaml file {0}", path);
foreach (var document in yamlStream.Documents)
{