public void ShouldFind3_0AtIndex6() { KListSimpleSearch <float> K = new KListSimpleSearch <float>(); float[] TestArray = new float[] { 2.1f, 5.9f, 1.0f, 8, 4.4f, 9.7f, 3 }; var Working = K.ListMaker(TestArray, 3); Assert.AreEqual(Working, 6); }
public void ShouldNotFind4AtIndex2() { KListSimpleSearch <float> K = new KListSimpleSearch <float>(); float[] TestArray = new float[] { 2.1f, 5.9f, 1.0f, 8, 4.4f, 9.7f, 3 }; var Working = K.ListMaker(TestArray, 4); Assert.AreNotEqual(Working, 2); }
public void ShouldNotFind6AtIndex2() { KListSimpleSearch <int> K = new KListSimpleSearch <int>(); int[] TestArray = new int[] { 2, 5, 1, 8, 4, 9, 3 }; var Working = K.ListMaker(TestArray, 4); Assert.AreNotEqual(Working, 2); }
public void ShouldFind3AtIndex6() { KListSimpleSearch <int> K = new KListSimpleSearch <int>(); int[] TestArray = new int[] { 2, 5, 1, 8, 4, 9, 3 }; var Working = K.ListMaker(TestArray, 3); Assert.AreEqual(Working, 6); }
public void ShouldFindBoomAtIndex5() { KListSimpleSearch <String> K = new KListSimpleSearch <String>(); String[] TestArray = new String[] { "Work", "No", "Wassup", "Robocop", "Kulcha", "Boom" }; var Working = K.ListMaker(TestArray, "Boom"); Assert.AreEqual(Working, 5); }