Remove old maps from tests and seperate model more

This commit is contained in:
Daniel Cronqvist 2024-08-12 21:24:09 +02:00
parent 33f1f4dcb7
commit 4aebf1d67b
43 changed files with 290 additions and 1296 deletions

View file

@ -6,6 +6,8 @@ public static partial class TestData
{
public static XmlReader GetXmlReaderFor(string testDataFile)
{
var names = typeof(TestData).Assembly.GetManifestResourceNames();
var fullyQualifiedTestDataFile = $"DotTiled.Tests.{testDataFile}";
using var stream = typeof(TestData).Assembly.GetManifestResourceStream(fullyQualifiedTestDataFile)
?? throw new ArgumentException($"Test data file '{fullyQualifiedTestDataFile}' not found");