What is the correct syntax for mock.Verify for a protected setup?
I have the following unit test: [TestMethod] public async Task ShouldGetExperimentalValuePost() { //arrange var avd = ActualVesselData.Parser.ParseJson(File.ReadAllText(".\\TestFiles\\ActualVesselData-TTN-online.json")); const string mlOutputForTestAvd = "{\"timestampAfterEpochMillis\": 1686235071742, \"raw_prediction\": 2.6, \"prediction\": 5.22, \"optimal_prediction\": 5.22, \"version_offline\": 38}"; var mockMessageHandler = new Mock<HttpMessageHandler>(); mockMessageHandler.Protected() .Setup<Task<HttpResponseMessage>>("SendAsync", ItExpr.IsAny<HttpRequestMessage>(), ItExpr.IsAny<CancellationToken>()) .ReturnsAsync(new HttpResponseMessage { StatusCode = HttpStatusCode.OK, Content = new StringContent(mlOutputForTestAvd) }); var mlClient = new… Read More What is the correct syntax for mock.Verify for a protected setup?