dennis / slipstream

ISC License
5 stars 0 forks source link

Adding unit tests #69

Closed lawrab closed 3 years ago

lawrab commented 3 years ago

Adding very basic unit tests for CarInfoTracker using XUnit Theory and ClassData to create a data-driven test that will test if the IRacingCarInfo event is published.

More thought needs to be given to how we generate test data

Note: I had to use reflection to set the IsConnected property in the iRacingSdk DataSample class as the setter is internal and I cannot use set internal visible to expose it our test project, it is a git submodule.