Exemplo n.º 1
0
        public void AudioAnalyzer_IsCloseable()
        {
            var sut = new AudioAnalyzer(1200, 2, 48000, 800, 400, 2048, false);

            using (sut)
            {
            }
            sut.Dispose();  // Second close should also succeed
        }
Exemplo n.º 2
0
        public void AudioAnalyzer_IsCloseableAsync()
        {
            var sut = new AudioAnalyzer(1200, 2, 48000, 800, 400, 2048, true);

            using (sut)
            {
                Task.Delay(50).Wait();
            }
            sut.Dispose();  // Second close should also succeed
        }