0

Can somebody explain me how to do the nUnit testing for WPF viewmodel. I am new to this. I created a nUnit project however i am not sure how to run this.

Is this through the nUnit exe or directly from Visual studio?

Is there any help avbailable on running the test?

4

1 に答える 1

0

Andrew が説明するように、viewModel の目標は、テスト可能な UI の表現になることです。したがって、viewModel をテストすることは、他のオブジェクトと同じことです。

Nunit に慣れることをお勧めします: http://www.nunit.org/index.php?p=quickStart&r=2.2.10

VS または Nunit exe を介してテストを実行することは同じですが、これは VS 統合により簡単になります。

于 2013-03-26T08:02:34.317 に答える