Beispiel #1
0
        public void Construction()
        {
            var spectrumGenerator = new SpectrumGeneratorPlayMode(100, 101, pdArraySelector_);

            Assert.AreEqual(100, spectrumGenerator.Spectrum.width);
            Assert.AreEqual(101, spectrumGenerator.Spectrum.height);
        }
Beispiel #2
0
        public void Update_array_available_loud_no_selection()
        {
            for (var i = 0; i < dummyData_.Length; ++i)
            {
                dummyData_[i] = 100f; // loud sound
            }
            var spectrumGenerator = new SpectrumGeneratorPlayMode(100, 100, pdArraySelector_);
            var validPixel        = spectrumGenerator.Update(noSelectionRect_);

            Assert.AreEqual(0, validPixel);
        }