How to check writeonly property

In my application, using the MVP pattern, the presenter sets some properties in the view. For example, Iview has the string Customer {set;}. Now I want to check that this property has been set with some value of "x". can i do a test with rhino?

+5
source share
1 answer

Do not set write-only properties. How . NET development guidelines say:

Do not provide installation-only properties.

getter , . Set, . , AppDomain SetCachePath set-only, CachePath.

/ , unit testi . Rhino Mocks, .

, , , virtual, Rhino Mocks, , . , , , , , .

+4

All Articles