Пример #1
0
        public void TestVolumeRedLight()
        {
            Mpg123 mpg123 = new Mpg123();
            double base_  = 0;
            double really = 0;
            double rva_db = 0;

            Assert.That(() => mpg123.Volume(20), Throws.Nothing);
            mpg123.GetVolume(ref base_, ref really, ref rva_db);
            Assert.That(base_, Is.Not.EqualTo(0));
        }
Пример #2
0
        public void TestVolumeChangeRedLight()
        {
            Mpg123 mpg123 = new Mpg123();

            mpg123.Volume(50);
            mpg123.VolumeChange(25);

            double base_  = 0;
            double really = 0;
            double rva_db = 0;

            mpg123.GetVolume(ref base_, ref really, ref rva_db);

            Assert.That(base_, Is.Not.EqualTo(50));
        }
Пример #3
0
        public void TestVolumeChange()
        {
            Mpg123 mpg123 = new Mpg123();

            mpg123.Volume(20);

            Assert.That(() => mpg123.VolumeChange(10), Throws.Nothing);

            double expectedVolume = 30;

            double base_  = 0;
            double really = 0;
            double rva_db = 0;

            mpg123.GetVolume(ref base_, ref really, ref rva_db);

            Assert.That(base_, Is.EqualTo(expectedVolume));
        }