iTranslated by AI
The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
📚
Unit Testing Sample with Moq in Xamarin Prism, ReactiveProperty, and MVVM
Recently, I introduced the code for a makeshift book viewer.
http://www.nuits.jp/embed/2016/09/20/140624
I have polished up the source code a bit and added unit tests.
I hope you find it helpful.
//hatenablog-parts.com/embed?url=https%3A%2F%2Fgithub.com%2Fnuitsjp%2FBookViewer
By the way, the tests cover the ViewModel and Model, excluding the View.
As shown below, I have achieved 100% code coverage.

I used dotCover for measuring the coverage.
So, this time I will just introduce the code and release the source; I will provide a detailed explanation next time (I said the same thing before, haha).
See you later.
Update on 2016.09.25
I have posted a follow-up article explaining the source code below.
Please take a look if you are interested.
Discussion