Beispiel #1
0
        private static void AssertSerializationResult(LgoLeagueGameRetrievalConfiguration retrievalConfiguration, string expectedJson)
        {
            var requestContext = new RequestExecutionContext.Builder().With(retrievalConfiguration).Build();

            RequestExecutionContext.ExecuteWith(requestContext, () =>
            {
                var actualJson = JsonConvert.SerializeObject(Game, Formatting.Indented);
                Assert.AreEqual(expectedJson, actualJson);
            });
        }