我是代码分析的新手,在这里我不知道vs2012中的代码分析工具和Fxcop工具之间的区别和用法.
请提供一些细节.
我在C#WPF MVVM应用程序中有以下代码.
public RelayCommand PolishCommand
{
get
{
polishcommand = new RelayCommand(e =>
{
PolishedWeightCalculatorViewModel model = new PolishedWeightCalculatorViewModel(outcomeIndex, OutcomeSelectedItem.RoughCarats);
PolishedWeightCalculatorView polish = new PolishedWeightCalculatorView(model);
bool? result = polish.ShowDialog();
if (result.HasValue)
{
Run Code Online (Sandbox Code Playgroud)
但我开始知道,从MVM模式中调用viewmodel的窗口是错误的.
也在下面的链接中说明.
请提供替代解决方案,帮助我任何人.
提前致谢.
我正在为我的WPF C#应用程序编写NUnit测试代码.这里有一些我的方法有MessageBox.Show("");但我们不知道如何在代码中处理这个.
请通过提供解决方案帮助我.
谢谢,