From 41e72e8fc597f753f7f080d68dbedad884bc0727 Mon Sep 17 00:00:00 2001 From: DrSmugleaf Date: Mon, 22 Feb 2021 14:54:21 +0100 Subject: [PATCH] Make EntityPrototypeComponentsTest show the path of a badly formatted file --- .../GameObjects/Components/EntityPrototypeComponentsTest.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.IntegrationTests/Tests/GameObjects/Components/EntityPrototypeComponentsTest.cs b/Content.IntegrationTests/Tests/GameObjects/Components/EntityPrototypeComponentsTest.cs index 2cd325824b..57832bb813 100644 --- a/Content.IntegrationTests/Tests/GameObjects/Components/EntityPrototypeComponentsTest.cs +++ b/Content.IntegrationTests/Tests/GameObjects/Components/EntityPrototypeComponentsTest.cs @@ -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) {