Add build step to make test

This commit is contained in:
Daniel Cronqvist 2024-08-21 23:15:38 +02:00
parent 7fbf0160d6
commit 9960cccd5b
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,5 @@
test:
dotnet build src/DotTiled.sln
dotnet test src/DotTiled.sln
docs-serve:

View file

@ -39,7 +39,7 @@ namespace MyBenchmarks
[BenchmarkCategory("MapFromInMemoryTmxString")]
[Benchmark(Baseline = true, Description = "DotTiled")]
public DotTiled.Model LoadWithDotTiledFromInMemoryTmxString()
public DotTiled.Model.Map LoadWithDotTiledFromInMemoryTmxString()
{
using var stringReader = new StringReader(_tmxContents);
using var xmlReader = XmlReader.Create(stringReader);
@ -49,7 +49,7 @@ namespace MyBenchmarks
[BenchmarkCategory("MapFromInMemoryTmjString")]
[Benchmark(Baseline = true, Description = "DotTiled")]
public DotTiled.Model LoadWithDotTiledFromInMemoryTmjString()
public DotTiled.Model.Map LoadWithDotTiledFromInMemoryTmjString()
{
using var mapReader = new DotTiled.Serialization.Tmj.TmjMapReader(_tmjContents, _ => throw new Exception(), _ => throw new Exception(), []);
return mapReader.ReadMap();