fix borked tests
parent
87570445e8
commit
29179e0ad6
|
@ -232,7 +232,7 @@ namespace Tests
|
||||||
[Reads(typeof(MockMessage))]
|
[Reads(typeof(MockMessage))]
|
||||||
class ReadMessagesWhenNoneExistEngine : Engine
|
class ReadMessagesWhenNoneExistEngine : Engine
|
||||||
{
|
{
|
||||||
public override void Update(float dt)
|
public override void Update(double dt)
|
||||||
{
|
{
|
||||||
emptyReadMessagesResult = ReadMessages<MockMessage>();
|
emptyReadMessagesResult = ReadMessages<MockMessage>();
|
||||||
}
|
}
|
||||||
|
@ -242,7 +242,7 @@ namespace Tests
|
||||||
public void ReadMessagesWhenNoneHaveBeenEmitted()
|
public void ReadMessagesWhenNoneHaveBeenEmitted()
|
||||||
{
|
{
|
||||||
var worldBuilder = new WorldBuilder();
|
var worldBuilder = new WorldBuilder();
|
||||||
worldBuilder.AddEngine<ReadMessagesWhenNoneExistEngine>();
|
worldBuilder.AddEngine(new ReadMessagesWhenNoneExistEngine());
|
||||||
|
|
||||||
var world = worldBuilder.Build();
|
var world = worldBuilder.Build();
|
||||||
|
|
||||||
|
@ -440,7 +440,7 @@ namespace Tests
|
||||||
static Entity entityFromComponentIDResult;
|
static Entity entityFromComponentIDResult;
|
||||||
class GetEntityFromComponentIDEngine : Engine
|
class GetEntityFromComponentIDEngine : Engine
|
||||||
{
|
{
|
||||||
public override void Update(float dt)
|
public override void Update(double dt)
|
||||||
{
|
{
|
||||||
var componentID = ReadComponent<MockComponent>().Key;
|
var componentID = ReadComponent<MockComponent>().Key;
|
||||||
entityFromComponentIDResult = GetEntityByComponentID(componentID);
|
entityFromComponentIDResult = GetEntityByComponentID(componentID);
|
||||||
|
@ -451,7 +451,7 @@ namespace Tests
|
||||||
public void GetEntityFromComponentID()
|
public void GetEntityFromComponentID()
|
||||||
{
|
{
|
||||||
var worldBuilder = new WorldBuilder();
|
var worldBuilder = new WorldBuilder();
|
||||||
worldBuilder.AddEngine<GetEntityFromComponentIDEngine>();
|
worldBuilder.AddEngine(new GetEntityFromComponentIDEngine());
|
||||||
|
|
||||||
MockComponent component;
|
MockComponent component;
|
||||||
component.myInt = 2;
|
component.myInt = 2;
|
||||||
|
@ -469,7 +469,7 @@ namespace Tests
|
||||||
static MockComponent mockComponentByIDResult;
|
static MockComponent mockComponentByIDResult;
|
||||||
class GetComponentByIDEngine : Engine
|
class GetComponentByIDEngine : Engine
|
||||||
{
|
{
|
||||||
public override void Update(float dt)
|
public override void Update(double dt)
|
||||||
{
|
{
|
||||||
var componentID = ReadComponent<MockComponent>().Key;
|
var componentID = ReadComponent<MockComponent>().Key;
|
||||||
mockComponentByIDResult = GetComponentByID<MockComponent>(componentID);
|
mockComponentByIDResult = GetComponentByID<MockComponent>(componentID);
|
||||||
|
@ -479,7 +479,7 @@ namespace Tests
|
||||||
public void GetComponentByID()
|
public void GetComponentByID()
|
||||||
{
|
{
|
||||||
var worldBuilder = new WorldBuilder();
|
var worldBuilder = new WorldBuilder();
|
||||||
worldBuilder.AddEngine<GetComponentByIDEngine>();
|
worldBuilder.AddEngine(new GetComponentByIDEngine());
|
||||||
|
|
||||||
MockComponent component;
|
MockComponent component;
|
||||||
component.myInt = 2;
|
component.myInt = 2;
|
||||||
|
@ -498,7 +498,7 @@ namespace Tests
|
||||||
|
|
||||||
class GetComponentByIDWithTypeMismatchEngine : Engine
|
class GetComponentByIDWithTypeMismatchEngine : Engine
|
||||||
{
|
{
|
||||||
public override void Update(float dt)
|
public override void Update(double dt)
|
||||||
{
|
{
|
||||||
var componentID = ReadComponent<MockComponent>().Key;
|
var componentID = ReadComponent<MockComponent>().Key;
|
||||||
GetComponentByID<OtherComponent>(componentID);
|
GetComponentByID<OtherComponent>(componentID);
|
||||||
|
@ -509,7 +509,7 @@ namespace Tests
|
||||||
public void GetComponentByIDWithTypeMismatch()
|
public void GetComponentByIDWithTypeMismatch()
|
||||||
{
|
{
|
||||||
var worldBuilder = new WorldBuilder();
|
var worldBuilder = new WorldBuilder();
|
||||||
worldBuilder.AddEngine<GetComponentByIDWithTypeMismatchEngine>();
|
worldBuilder.AddEngine(new GetComponentByIDWithTypeMismatchEngine());
|
||||||
|
|
||||||
MockComponent component;
|
MockComponent component;
|
||||||
component.myInt = 2;
|
component.myInt = 2;
|
||||||
|
|
Loading…
Reference in New Issue