EqualizerTests.cs 641 Bytes
Newer Older
1 2
using LibVLCSharp.Shared;
using NUnit.Framework;
3
using System;
Martin Finkel's avatar
Martin Finkel committed
4 5 6 7

namespace LibVLCSharp.Tests
{
    [TestFixture]
8
    public class EqualizerTests : BaseSetup
Martin Finkel's avatar
Martin Finkel committed
9 10 11 12 13 14 15 16
    {
        [Test]
        public void BasicNativeCallTest()
        {
            var equalizer = new Equalizer();
            equalizer.SetAmp(-1, 1);
            Assert.AreEqual(-1, equalizer.Amp(1));
        }
17 18 19 20 21 22 23 24 25

        [Test]
        public void DisposeEqualizer()
        {
            var equalizer = new Equalizer();
            equalizer.SetAmp(-1, 1);
            equalizer.Dispose();
            Assert.AreEqual(IntPtr.Zero, equalizer.NativeReference);
        }
Martin Finkel's avatar
Martin Finkel committed
26 27
    }
}