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.
update .gitignore to exclude test files
added new Slipstream.UnitTests project
Added XUnit dependencies
Created a basic constructor test
Created a basic handler test for CarInfoTracker
Added a CarInfoDataSampleTestData class to generate data for the handler test
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.
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.