public void testCommandExecute() { //CREATE TEST INSTANCE CustomServiceLoadedCommand customServiceLoadedCommand = new CustomServiceLoadedCommand(); //2. USE DEPENDENCIES FROM 'SETUP' customServiceLoadedCommand.customModel = _iCustomModel; // _originalTestGameList = new List <string>(); _originalTestGameList.Add("String0"); customServiceLoadedCommand.gameList = _originalTestGameList; //3. CREATE TEST DELEGATE TestDelegate testDelegate = delegate() { //PUT 1 OR MORE LINES OF CODE HERE customServiceLoadedCommand.Execute(); }; //4. RUN TEST DELEGATE Assert.DoesNotThrow(testDelegate); }
public void testCommandExecute () { //CREATE TEST INSTANCE CustomServiceLoadedCommand customServiceLoadedCommand = new CustomServiceLoadedCommand(); //2. USE DEPENDENCIES FROM 'SETUP' customServiceLoadedCommand.customModel = _iCustomModel; // _originalTestGameList = new List<string>(); _originalTestGameList.Add ("String0"); customServiceLoadedCommand.gameList = _originalTestGameList; //3. CREATE TEST DELEGATE TestDelegate testDelegate = delegate() { //PUT 1 OR MORE LINES OF CODE HERE customServiceLoadedCommand.Execute(); }; //4. RUN TEST DELEGATE Assert.DoesNotThrow (testDelegate); }