Open
Description
Summary
While writing unit tests for Singularity.Duality
I came across some things that could be easier to unit test such as:
- Mocking/facking the
Log
class. This class currently does not implement a interface so I had to write a adapter to do so. If duality would have aILog
interface this would have prevented me from having to make a adapter class. - Forgetting to unsubscribe from
Scene.ComponentAdded
andScene.GameObjectsAdded
might cause unpleasant side effects in other unit tests. This is basically because its is a type of static state. This wouldnt be a problem if these events were not static.
Thats pretty much it for now. Issue 2 might be harder to fix and also be possibly breaking as it probably requires a api change but issue 1 is really easy to do and can be added as of this moment I think.