I am trying to make a Unit Test out of a public Constructor.
Using Visual Studio 2012
How can I create a simple Unit Test out of this Constructor.
public ScenarioSelectViewModel(IEventRecorderSvc service)
{
eventRecordingSvc = svc;
OkCmd = new DelegateCommand<Window>(
OkCmd Executed,
OkCmd CanExecute);
RefreshAvailableScenarioStepExecutionsCommand = new DelegateCommand<object>(
RefreshAvailableScenarioStepExecutionsCommandExecuted,
RefreshAvailableScenarioStepExecutionsCommandCanExecute);
if (RefreshAvailableScenarioStepExecutionsCommand.CanExecute(null))
{
RefreshAvailableScenarioStepExecutionsCommand.Execute(null);
}
}
Aucun commentaire:
Enregistrer un commentaire