mirror of
https://github.com/dcronqvist/DotTiled.git
synced 2025-05-09 21:56:03 +03:00
Start json reader
This commit is contained in:
parent
34dcca7f35
commit
0f05bd10aa
4 changed files with 352 additions and 0 deletions
32
DotTiled.Tests/Serialization/Tmj/TmjMapReaderTests.cs
Normal file
32
DotTiled.Tests/Serialization/Tmj/TmjMapReaderTests.cs
Normal file
|
@ -0,0 +1,32 @@
|
|||
namespace DotTiled.Tests;
|
||||
|
||||
public partial class TmjMapReaderTests
|
||||
{
|
||||
[Fact]
|
||||
public void Test1()
|
||||
{
|
||||
// Arrange
|
||||
var jsonString =
|
||||
"""
|
||||
{
|
||||
"backgroundcolor":"#656667",
|
||||
"height":4,
|
||||
"nextobjectid":1,
|
||||
"nextlayerid":1,
|
||||
"orientation":"orthogonal",
|
||||
"renderorder":"right-down",
|
||||
"tileheight":32,
|
||||
"tilewidth":32,
|
||||
"version":"1",
|
||||
"tiledversion":"1.0.3",
|
||||
"width":4
|
||||
}
|
||||
""";
|
||||
|
||||
// Act
|
||||
using var tmjMapReader = new TmjMapReader(jsonString);
|
||||
|
||||
// Assert
|
||||
var map = tmjMapReader.ReadMap();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue