public void Should_GetLatestVersionFromJsonPreview() { string json = File.ReadAllText("get-versions-result-2019-04-01.json"); Rootobject dynJson = JsonConvert.DeserializeObject <Rootobject>(json); Version latestVersion = JsonExtensions.GetLatestVersion(json, true); Version expectedVersion = new Version("1.17.0"); Assert.Equal(expectedVersion, latestVersion); }