mirror of
https://github.com/dcronqvist/DotTiled.git
synced 2025-02-05 08:52:50 +02:00
Add build step to make test
This commit is contained in:
parent
7fbf0160d6
commit
9960cccd5b
2 changed files with 3 additions and 2 deletions
1
Makefile
1
Makefile
|
@ -1,4 +1,5 @@
|
|||
test:
|
||||
dotnet build src/DotTiled.sln
|
||||
dotnet test src/DotTiled.sln
|
||||
|
||||
docs-serve:
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue