public async Task TestTargetedChangelogs(ChangelogTarget target, string version, params uint[] expectedIds)
        {
            var release = await Client.GetChangelogEntry(target, version);

            var matchingIds = release.Entries.Where(x => x.Id.HasValue).Count(x => expectedIds.Contains(x.Id.Value));

            Assert.AreEqual(expectedIds.Length, matchingIds);
        }
예제 #2
0
 /// <summary>
 /// Get the changelogs for a specific release
 /// </summary>
 /// <param name="client">The <see cref="OrbitClient"/> to use</param>
 /// <param name="target">The <see cref="ChangelogTarget"/></param>
 /// <param name="version">The version of the <see cref="target"/> to get entries for</param>
 /// <returns>The changelog and the associated changes</returns>
 public static Task <OsuChangelogRelease> GetChangelogEntry(this OrbitClient client, ChangelogTarget target, string version)
 {
     return(client.PerformAsync <OsuChangelogRelease>(new OsuChangelogRequest(target, version)));
 }
 public OsuChangelogRequest(ChangelogTarget target, string version)
 {
     Target  = target;
     Version = version;
 }