Example #1
0
        public void TestStringCollection_IndexOfString()
        {
            var sc = new StringCollection();

            sc.Add("Hello World!");
            sc.Add("Kamusta na ba?");
            sc.Add("Talaga lang ha");
            sc.Add("Kamote ka ba?");

            int expected = 2;
            int actual   = sc.IndexOfString("Talaga");

            Assert.AreEqual(expected, actual);
        }