Beispiel #1
0
        public async void PingTestOnNonexistentServer()
        {
            Assert.Null(_nonexistentSubsonicServer.ApiVersion);
            await Assert.ThrowsAsync <SubsonicApiException>(async() => await _nonexistentSubsonicClient.PingAsync());

            Assert.Null(_nonexistentSubsonicServer.ApiVersion);
        }
Beispiel #2
0
        public async void PingTestPlayOnSubsonic()
        {
            var result = await _playSubsonicClient.PingAsync();

            Assert.True(result);
            Assert.NotNull(_playSubsonicServer.ApiVersion);
            Assert.True(_playSubsonicServer.ApiVersion >= SubsonicApiVersion.Version1_0_0);
        }