private void VerifyRequest(FluentMockServer server, UpdateMode mode) { var req = server.GetLastRequest(); Assert.Equal("GET", req.Method); // Note, we don't check for an exact match of the encoded user string in Req.Path because it is not determinate - the // SDK may add custom attributes to the user ("os" etc.) and since we don't canonicalize the JSON representation, // properties could be serialized in any order causing the encoding to vary. Also, we don't test REPORT mode here // because it is already covered in FeatureFlagRequestorTest. Assert.Matches(mode.FlagsPathRegex, req.Path); Assert.Equal("", req.RawQuery); Assert.Equal(_mobileKey, req.Headers["Authorization"][0]); Assert.Null(req.Body); }