formatting

pull/5/head
Evan Hemsley 2019-06-15 12:32:56 -07:00
parent d9756e0c3d
commit 700f10f31e
1 changed files with 7 additions and 4 deletions

View File

@ -5,7 +5,8 @@ using Encompass;
using System.Collections.Generic; using System.Collections.Generic;
using System; using System;
namespace Tests { namespace Tests
{
public class EngineTest public class EngineTest
{ {
static IEnumerable<MockComponent> resultComponents; static IEnumerable<MockComponent> resultComponents;
@ -105,7 +106,8 @@ namespace Tests {
public override void Update(float dt) public override void Update(float dt)
{ {
var component = this.ReadComponent<MockComponent>(); var component = this.ReadComponent<MockComponent>();
this.UpdateComponent(component, (MockComponent comp) => { this.UpdateComponent(component, (MockComponent comp) =>
{
comp.myInt = 420; comp.myInt = 420;
comp.myString = "blaze it"; comp.myString = "blaze it";
return comp; return comp;
@ -141,7 +143,8 @@ namespace Tests {
public override void Update(float dt) public override void Update(float dt)
{ {
var component = this.ReadComponent<MockComponent>(); var component = this.ReadComponent<MockComponent>();
this.UpdateComponent(component, (MockComponent comp) => { this.UpdateComponent(component, (MockComponent comp) =>
{
comp.myInt = 420; comp.myInt = 420;
comp.myString = "blaze it"; comp.myString = "blaze it";
return comp; return comp;
@ -166,7 +169,7 @@ namespace Tests {
var world = worldBuilder.Build(); var world = worldBuilder.Build();
var ex =Assert.Throws<IllegalComponentMutationException>(() => world.Update(0.01f)); var ex = Assert.Throws<IllegalComponentMutationException>(() => world.Update(0.01f));
Assert.That(ex.Message, Is.EqualTo("Engine UndeclaredUpdateComponentTestEngine tried to mutate undeclared Component MockComponent")); Assert.That(ex.Message, Is.EqualTo("Engine UndeclaredUpdateComponentTestEngine tried to mutate undeclared Component MockComponent"));
} }
} }