public void GetExcludedFromScan( [Frozen] Mock <IHttpClient> httpClientMock, [Greedy] SpiderComponent sut, IEnumerable <string> excludedFromScan) { // ARRANGE var json = new JObject( new JProperty("excludedFromScan", JArray.FromObject(excludedFromScan))); httpClientMock.SetupApiCall(sut, CallType.View, "excludedFromScan") .Returns(json.ToString()) .Verifiable(); // ACT var result = sut.GetExcludedFromScan(); // ASSERT result.ShouldBeEquivalentTo(excludedFromScan); httpClientMock.Verify(); }