コード例 #1
0
 static void AssertAudioBroadcast(AudioBroadcast audioBroadcast, AudioBroadcastOptions options)
 {
     AssertAudioItem(audioBroadcast, options);
     Assert.AreEqual(audioBroadcast.Region, options.Region);
     Assert.AreEqual(audioBroadcast.RadioCallSign, options.RadioCallSign);
     Assert.AreEqual(audioBroadcast.RadioStationId, options.RadioStationId);
     Assert.AreEqual(audioBroadcast.RadioBand, options.RadioBand);
     Assert.AreEqual(audioBroadcast.ChannelNr, options.ChannelNr);
 }
コード例 #2
0
        public void AudioBroadcastInstantiation()
        {
            var options = new AudioBroadcastOptions();

            SetAudioBroadcastOptions(options);
            var audio_broadcast = new AudioBroadcast("-1", "-1", options);

            AssertAudioBroadcast(audio_broadcast, options);
            AssertAudioBroadcast(audio_broadcast, audio_broadcast.GetOptions());
        }