public void TestArrayEquals() { var f1 = LinearArray(0, 100); var f2 = LinearArray(0, 100); var f3 = LinearArray(1, 100); Assert.IsTrue(AudioEngine.ArrayEquals(f1, f2)); Assert.IsTrue(!AudioEngine.ArrayEquals(f1, f3)); var asb1 = new AudioSampleBuffer(WaveOutput.InternalFormat); var asb2 = new AudioSampleBuffer(WaveOutput.InternalFormat); var f4 = new[] { asb1, asb2 }; var f5 = new[] { asb1, asb2 }; var f6 = new[] { asb2, asb1 }; var f7 = new[] { asb1, null }; var f8 = new[] { asb1, null }; Assert.IsTrue(AudioEngine.ArrayEquals(f5, f4)); Assert.IsTrue(!AudioEngine.ArrayEquals(f5, f6)); Assert.IsTrue(!AudioEngine.ArrayEquals(f5, f7)); Assert.IsTrue(AudioEngine.ArrayEquals(f8, f7)); }