public void CheckComputationsNoSolutionsExceptionTest() { var mockcore = new Mock <ClientNodeProcessingModule>(); var mockcreator = new Mock <IMessageArrayCreator>(); var solutionRequest = new SolutionRequest(); Message[] request = new[] { solutionRequest }; mockcreator.Setup(u => u.Create(solutionRequest)).Returns(request); var mockclient = new Mock <IClusterClient>(); var response = new NoOperation(); var responses = new Message[] { response }; mockclient.Setup(u => u.SendRequests(request)).Returns(responses); var clientNode = new ClientNode(mockclient.Object, mockcore.Object, mockcreator.Object); var ret = clientNode.CheckComputations(solutionRequest); }