public void ContainsTest() { var arr = UnsafeStack.Allocate <int>(10); for (int i = 1; i <= 10; i++) { UnsafeStack.Push(arr, i); } Assert.IsTrue(UnsafeStack.Contains(arr, 1)); Assert.IsTrue(UnsafeStack.Contains(arr, 10)); Assert.IsFalse(UnsafeStack.Contains(arr, 11)); }