public void Test1() { var server = new MockHttpServer(); var client = server.CreateClient(); var res = client.GetStringAsync("api/values").Result; string[] output = JsonConvert.DeserializeObject <string[]>(res); output.Should().ContainInOrder(new string[] { "value1", "value2" }); }