예제 #1
0
        public void StringCollectionTest()
        {
            var strings = new List <string>();

            strings.Add("Hello");
            strings.Add("World!");
            strings.Add("Émile");

            Assert.Equal((uint)strings.Count, StringCollection.GetSize(strings));
            Assert.Equal("Hello", StringCollection.GetValue(strings, 0));
            Assert.Equal("World!", StringCollection.GetValue(strings, 1));
            Assert.Equal("Émile", StringCollection.GetValue(strings, 2));
        }