Browse Source

fix broken test

main
cosmonaut 2 years ago
parent
commit
00614661ec
  1. 10
      test/RendererTest.cs

10
test/RendererTest.cs

@ -13,7 +13,7 @@ namespace Tests
class TestRenderer : Renderer
{
public override void Render()
public override void Render(double dt, double alpha)
{
ref readonly var entity = ref ReadEntity<AComponent>();
result = (GetComponent<AComponent>(entity), entity);
@ -34,10 +34,10 @@ namespace Tests
var world = worldBuilder.Build();
world.Update(0.01f);
world.Draw();
world.Draw(0.01f, 0);
world.Update(0.01);
world.Draw();
world.Draw(0.01f, 0);
Assert.That(result, Is.EqualTo((aComponent, entity)));
}
@ -59,10 +59,10 @@ namespace Tests
var world = worldBuilder.Build();
world.Update(0.01f);
world.Draw();
world.Draw(0.01f, 0);
world.Update(0.01f);
world.Draw();
world.Draw(0.01f, 0);
Assert.That(result, Is.EqualTo((aComponent, entity)).Or.EqualTo((aComponentTwo, entityB)));
}

Loading…
Cancel
Save