Skip to content

Commit

Permalink
add testfixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
bertt committed Oct 17, 2024
1 parent a96c621 commit 9cbb7df
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
15 changes: 8 additions & 7 deletions tests/TileHandlerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void GetGpuTileWithoutTagsTest()
var instance = new Instance();
instance.Position = new Wkx.Point(1, 2, 0);
instance.Scale = 1;
instance.Model = "Box.glb";
instance.Model = "./testfixtures/Box.glb";
instances.Add(instance);

// act
Expand Down Expand Up @@ -52,7 +52,7 @@ public void GetGpuTileTest()
var instance = new Instance();
instance.Position = new Wkx.Point(1, 2, 0);
instance.Scale = 1;
instance.Model = "Box.glb";
instance.Model = "./testfixtures/Box.glb";
instance.Tags = JArray.Parse("[{'id':123},{'name': 'test'}]");
instances.Add(instance);

Expand Down Expand Up @@ -87,7 +87,7 @@ public void GetTileTest()
var instance = new Instance();
instance.Position = new Wkx.Point(1, 2);
instance.Scale = 1;
instance.Model = "Box.glb";
instance.Model = "./testfixtures/Box.glb";
instances.Add(instance);

// act
Expand All @@ -106,6 +106,7 @@ public void GetTileTest()
[Test]
public void GetCompositeTileTest()
{

// arrange
var instances = new List<Instance>();
var instance = new Instance();
Expand Down Expand Up @@ -153,7 +154,7 @@ public void GetTileWithScaleNonUniformTest()
var instance = new Instance();
instance.Position = new Wkx.Point(1, 2);
instance.ScaleNonUniform = scaleNonuniform;
instance.Model = "Box.glb";
instance.Model = "./testfixtures/Box.glb";
instances.Add(instance);

// act
Expand Down Expand Up @@ -197,12 +198,12 @@ public void GetTileWithRtcCenterTest()
var instances = new List<Instance>();
var instance = new Instance();
instance.Position = new Wkx.Point(1, 2);
instance.Model = "Box.glb";
instance.Model = "./testfixtures/Box.glb";
instances.Add(instance);

var instance1 = new Instance();
instance1.Position = new Wkx.Point(10, 20);
instance1.Model = "Box.glb";
instance1.Model = "./testfixtures/Box.glb";
instances.Add(instance1);

// act
Expand All @@ -224,7 +225,7 @@ public void GetTileWithTagsTest()
var instances = new List<Instance>();
var instance = new Instance();
instance.Position = new Wkx.Point(1, 2);
instance.Model = "Box.glb";
instance.Model = "./testfixtures/Box.glb";
var tags = JArray.Parse("[{'id':123},{'name': 'test'}]");
instance.Tags = tags;
instances.Add(instance);
Expand Down
7 changes: 5 additions & 2 deletions tests/i3dm.export.tests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
Expand All @@ -17,7 +17,10 @@
</ItemGroup>

<ItemGroup>
<None Update="Box.glb">
<None Update="testfixtures\Box.glb">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="testfixtures\tree.glb">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
Expand Down
File renamed without changes.
Binary file added tests/testfixtures/tree.glb
Binary file not shown.

0 comments on commit 9cbb7df

Please sign in to comment.