public void testCommandExecute() { //CREATE TEST INSTANCE LoadButtonClickCommand loadButtonClickCommand = new LoadButtonClickCommand(); //2. USE DEPENDENCIES FROM 'SETUP' loadButtonClickCommand.iCustomService = _iCustomService; //3. CREATE TEST DELEGATE TestDelegate testDelegate = delegate() { //PUT 1 OR MORE LINES OF CODE HERE loadButtonClickCommand.Execute(); }; //4. RUN TEST DELEGATE Assert.DoesNotThrow(testDelegate); }
public void testCommandExecute () { //CREATE TEST INSTANCE LoadButtonClickCommand loadButtonClickCommand = new LoadButtonClickCommand(); //2. USE DEPENDENCIES FROM 'SETUP' loadButtonClickCommand.iCustomService = _iCustomService; //3. CREATE TEST DELEGATE TestDelegate testDelegate = delegate() { //PUT 1 OR MORE LINES OF CODE HERE loadButtonClickCommand.Execute(); }; //4. RUN TEST DELEGATE Assert.DoesNotThrow (testDelegate); }