public void IndexOfWorks() { var arr = new Uint8Array(new byte[] { 3, 6, 2, 9, 5 }); Assert.AreEqual(3, arr.IndexOf(9), "9"); Assert.AreEqual(-1, arr.IndexOf(1), "1"); }
public void IndexOfWorks() { var arr = new Uint8Array(new byte[] { 3, 6, 2, 9, 5 }); Assert.AreEqual(arr.IndexOf(9), 3, "9"); Assert.AreEqual(arr.IndexOf(1), -1, "1"); }