bi3mer / SeniorProject

Senior Project Game
MIT License
1 stars 1 forks source link

unit tests for event manager #859

Closed technicalliy closed 7 years ago

technicalliy commented 7 years ago

It's not a ton, but some testing for the subscriptions in the event manager

bi3mer commented 7 years ago

line 61 breaks when i run the tests.

cannot implicitly convert type 'void' to 'EventManager.PlayerBoardRaftDelegate`
bi3mer commented 7 years ago

@alliyfrauenpreis

technicalliy commented 7 years ago

will fix tomorrow

technicalliy commented 7 years ago

should be good?

bi3mer commented 7 years ago
Assets/Editor/EditorUnitTests/EventManagerUnitTests.cs(40,5): error CS0123: A method or delegate `EventManagerUnitTests.TurnRadioOn()' parameters do not match delegate `EventManager.RadioMusicDelegate(bool)' parameters
Assets/Editor/EditorUnitTests/EventManagerUnitTests.cs(50,5): error CS0123: A method or delegate `EventManagerUnitTests.TurnRadioOff()' parameters do not match delegate `EventManager.RadioMusicDelegate(bool)' parameters
technicalliy commented 7 years ago

goddamn it ok

ggetz commented 7 years ago

I'm good once the tests pass.

technicalliy commented 7 years ago

delegates should match now