From da3c4351c3a1f0e3b9cab83f88d9e23f46a96e62 Mon Sep 17 00:00:00 2001 From: Daniel Cronqvist Date: Sat, 17 Aug 2024 21:55:06 +0200 Subject: [PATCH] Fix so tests still work --- .github/workflows/tests.yml | 6 +++--- src/DotTiled.Benchmark/Program.cs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b2187bc..3e0d43b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,9 +14,9 @@ jobs: with: dotnet-version: 8.0.x - name: Restore dependencies - run: dotnet restore + run: dotnet restore src/DotTiled.sln - name: Build - run: dotnet build --no-restore + run: dotnet build --no-restore src/DotTiled.sln - name: Test - run: dotnet test --no-build --verbosity normal + run: dotnet test --no-build --verbosity normal src/DotTiled.sln \ No newline at end of file diff --git a/src/DotTiled.Benchmark/Program.cs b/src/DotTiled.Benchmark/Program.cs index 2acbce2..e04c6b1 100644 --- a/src/DotTiled.Benchmark/Program.cs +++ b/src/DotTiled.Benchmark/Program.cs @@ -39,19 +39,19 @@ namespace MyBenchmarks [BenchmarkCategory("MapFromInMemoryTmxString")] [Benchmark(Baseline = true, Description = "DotTiled")] - public DotTiled.Map LoadWithDotTiledFromInMemoryTmxString() + public DotTiled.Model.Map LoadWithDotTiledFromInMemoryTmxString() { using var stringReader = new StringReader(_tmxContents); using var xmlReader = XmlReader.Create(stringReader); - using var mapReader = new DotTiled.TmxMapReader(xmlReader, _ => throw new Exception(), _ => throw new Exception(), []); + using var mapReader = new DotTiled.Serialization.Tmx.TmxMapReader(xmlReader, _ => throw new Exception(), _ => throw new Exception(), []); return mapReader.ReadMap(); } [BenchmarkCategory("MapFromInMemoryTmjString")] [Benchmark(Baseline = true, Description = "DotTiled")] - public DotTiled.Map LoadWithDotTiledFromInMemoryTmjString() + public DotTiled.Model.Map LoadWithDotTiledFromInMemoryTmjString() { - using var mapReader = new DotTiled.TmjMapReader(_tmjContents, _ => throw new Exception(), _ => throw new Exception(), []); + using var mapReader = new DotTiled.Serialization.Tmj.TmjMapReader(_tmjContents, _ => throw new Exception(), _ => throw new Exception(), []); return mapReader.ReadMap(); }