Beispiel #1
0
        public void TestSetEqualizerRedLight()
        {
            Mpg123 mpg123     = new Mpg123();
            int    ErrorValue = 1000;

            Assert.That(() => mpg123.Eq(Mpg123.Channels.LEFT, ErrorValue, 20), Throws.TypeOf <Mpg123.ErrorException>());
        }
Beispiel #2
0
        public void TestGetEqualizerRedLight()
        {
            Mpg123 mpg123 = new Mpg123();

            mpg123.Eq(Mpg123.Channels.LR, 20, 30);
            double value = 20;

            Assert.That(mpg123.GetEq(Mpg123.Channels.LR, 20), Is.Not.EqualTo(value));
        }
Beispiel #3
0
        public void TestGetEqualizer()
        {
            Mpg123 mpg123 = new Mpg123();

            mpg123.Eq(Mpg123.Channels.LR, 20, 20);
            double aspectedValue = 20;

            Assert.That(mpg123.GetEq(Mpg123.Channels.LR, 20), Is.EqualTo(aspectedValue));
        }
Beispiel #4
0
        public void TestSetEqualizer()
        {
            Mpg123 mpg123 = new Mpg123();

            Assert.That(() => mpg123.Eq(Mpg123.Channels.LEFT, 10, 10), Throws.Nothing);
        }