public async void PingTestOnNonexistentServer() { Assert.Null(_nonexistentSubsonicServer.ApiVersion); await Assert.ThrowsAsync <SubsonicApiException>(async() => await _nonexistentSubsonicClient.PingAsync()); Assert.Null(_nonexistentSubsonicServer.ApiVersion); }
public async void PingTestPlayOnSubsonic() { var result = await _playSubsonicClient.PingAsync(); Assert.True(result); Assert.NotNull(_playSubsonicServer.ApiVersion); Assert.True(_playSubsonicServer.ApiVersion >= SubsonicApiVersion.Version1_0_0); }