37a720d044
* uncomment UpdateTwinAsync * add folder for DeviceTwinActor * Add support classes for DeviceTwinActor to update twin -- uses empty methods * remove Properties from DeviceStateActor class * Add InternalDeviceState Class and ability to update twin via callback from javascript * add placeholders for twin update logic for future pr * remove eslint jsdoc updates and update javascriptinterpreter tests * Add new thread for device properties updates * return null for not implemented methods * Add Unit Tests for Internal Device State * Update existing tests with new InternalDeviceState class * Update scripts with instructions on device property updates * Fix errors with JS device scripts and readonly dictionary * revert changes to DeviceTwin class * Update log messages for readability with timestamp * Rename logging methods for consistency * Separate properties and state and remove unused lines * update comments for twin update branch * Revert UpdateTwinAsync signature in DeviceClient * revert UpdateState and JSValueToDictionary to private * update comment on restoreState in chiller js script * Update InternalDevicePropertiesTest names * Consolidated to SmartDictionary class * remove DevicePropertiesActor, revert DeviceTwin, change terminology from sensors to state * revert actors logger * revert simulation runner * revert simulation runner test * revert deletion of UpdateReportedProperties.cs * fix spacing in SimulationRunner * fix spacing in device twin * consolidate restore state javascript methods * add properties to internal script method call * variable/method naming, whitespace cleanup, add missing method in elevator state script |
||
---|---|---|
.. | ||
Concurrency | ||
IntegrationTests | ||
Simulation | ||
helpers | ||
DeviceModelsGenerationTest.cs | ||
DevicesTest.cs | ||
IotHubConnectionStringManagerTest.cs | ||
README.md | ||
Services.Test.csproj | ||
SimulationsTest.cs | ||
SmartDictionaryTest.cs |
README.md
Unit Tests and Integration Tests
Guidelines
Conventions
- For each class create a test class with "Test" suffix.
- Flag all the tests with a type, e.g.
[Fact, Trait(Constants.Type, Constants.UnitTest)]
- Store Integration Tests under
IntegrationTests/
and use the[Fact, Trait(Constants.Type, Constants.IntegrationTest)]
attribute