public void IndexOf() { using (var arr = new SwiftArray <ulong> (9, 8, 7, 6, 5, 4, 3, 2, 1)) { Assert.AreEqual(2, arr.IndexOf(7), "IndexOf 1"); Assert.AreEqual(-1, arr.IndexOf(10), "IndexOf 2"); arr.Dispose(); Assert.Throws <ObjectDisposedException> (() => arr.IndexOf(5), "IndexOf 4"); } }