public void PerformeCalculation_Return_Result() { MockGeneratorManager.Setup(c => c.Generate( It.IsAny <int>(), It.IsAny <int>() )).Returns(() => Task.FromResult(System.Net.HttpStatusCode.OK)); Task result = ProcessorServiceUnderTest.PerformeCalculation(BatchInput); Assert.IsAssignableFrom <Task>(result); }