コード例 #1
0
        public void Should_Add_string_To_List()
        {
            //Arrange
            var word = new GenericList <string>();

            //Act
            word.Add("Dube");
            word.Add("John");
            word.AddByPositon("Jabulani", 1);
            //Assert
            Assert.AreEqual("Jabulani", word.GetByPosition(1));
        }