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)); }
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)); }
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)); }