public void TestIndexOf() { int[] integers = new int[] { 12, 34, 67, 89 }; StringTransformer testCollection = new StringTransformer(integers); Assert.AreEqual(0, testCollection.IndexOf("12")); Assert.AreEqual(1, testCollection.IndexOf("34")); Assert.AreEqual(2, testCollection.IndexOf("67")); Assert.AreEqual(3, testCollection.IndexOf("89")); }
public void TestIndexOfWithNullItemContained() { int[] integers = new int[] { 12, 34, 67, 89, 42 }; StringTransformer testCollection = new StringTransformer(integers); Assert.AreEqual(4, testCollection.IndexOf(null)); }