コード例 #1
0
 private static ContextualCommandViewModel AssertCommandExists(ContextualCommandsCollection commands, ICommand realCommand)
 {
     ContextualCommandViewModel[] commandsArr = commands.Where(c => c.InternalRealCommand.Equals(realCommand)).ToArray();
     AssertExpectedNumberOfCommands(commandsArr, 1);
     return(commandsArr[0]);
 }
 private static ContextualCommandViewModel AssertCommandExists(ContextualCommandsCollection commands, ICommand realCommand)
 {
     ContextualCommandViewModel[] commandsArr = commands.Where(c => c.InternalRealCommand.Equals(realCommand)).ToArray();
     AssertExpectedNumberOfCommands(commandsArr, 1);
     return commandsArr[0];
 }