public void GetOptionParseRobotsTxt( [Frozen] Mock <IHttpClient> httpClientMock, [Greedy] SpiderComponent sut, bool parseRobotsTxt) { // ARRANGE var json = new JObject( new JProperty("ParseRobotsTxt", parseRobotsTxt)); httpClientMock.SetupApiCall(sut, CallType.View, "optionParseRobotsTxt") .Returns(json.ToString()) .Verifiable(); // ACT var result = sut.GetOptionParseRobotsTxt(); // ASSERT result.Should().Be(parseRobotsTxt); httpClientMock.Verify(); }