How Unit Test Update App

How do you Unit Test the application update process?

I have an application, and now I write for it my own update module (using MVVM), which is a separate EXE. What is the best way to structure this module so that you can unit test.

+4
source share
1 answer

Very interesting question. I am also working on an update application at the moment - I use the Microsoft Updater application block so that the application can download updates via http and the update itself.

I developed my application using an interface-based approach so that I can easily simulate implementations to help in unit testing. They also have very nice fake frames. https://stackoverflow.com/questions/37359/what-c-mocking-framework-to-use

From the point of view of testing the download of the update, its installation, version testing, etc. I think test wiring might be more appropriate than device tests?

+1
source

Source: https://habr.com/ru/post/1308151/


All Articles