fix message add
parent
cfc5ca178f
commit
c2abd4b292
|
@ -14,6 +14,8 @@ namespace Encompass
|
|||
{
|
||||
messageTypeToMessages.Add(typeof(TMessage), new List<IMessage>());
|
||||
}
|
||||
|
||||
messageTypeToMessages[typeof(TMessage)].Add(message);
|
||||
}
|
||||
|
||||
internal void ClearMessages()
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Tests
|
|||
static IEnumerable<MockComponent> resultComponents;
|
||||
static MockComponent resultComponent;
|
||||
|
||||
static IEnumerable<MockMessage> resultMessages;
|
||||
static List<MockMessage> resultMessages;
|
||||
|
||||
public class ReadComponentsTestEngine : Engine
|
||||
{
|
||||
|
@ -197,7 +197,7 @@ namespace Tests
|
|||
{
|
||||
public override void Update(float dt)
|
||||
{
|
||||
resultMessages = this.ReadMessages<MockMessage>();
|
||||
resultMessages = this.ReadMessages<MockMessage>().ToList();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue