Odonno / ReduxSimple

Simple Stupid Redux Store using Reactive Extensions
http://www.nuget.org/packages/ReduxSimple/
MIT License
144 stars 20 forks source link

Add unit tests #12

Closed mhusainisurge closed 6 years ago

mhusainisurge commented 6 years ago

Add unit tests to make sure the code functions as expected and continues to do so as it evolves.

Odonno commented 6 years ago

We should do Rx testing

http://www.introtorx.com/content/v1.0.10621.0/16_TestingRx.html

Odonno commented 6 years ago

Well, well. We were close to perfections. :)

https://github.com/Odonno/ReduxSimple/blob/b28af367dbe11c8ebccd428f1459ed33010a8c8a/ReduxSimple/ReduxStoreWithHistory.cs#L82

I implemented all unit tests with xUnit and one test failed on Redo function. Indeed, unit tests was necessary.

mhusainisurge commented 6 years ago

This is great!