Exemple #1
0
        public void ZipLists_ZipStringLists_StringAtCorrectIndex()
        {
            //Arrange
            CustomList <string> custom1 = new CustomList <string>()
            {
                "one", "two", "three"
            };
            CustomList <string> custom2 = new CustomList <string>()
            {
                "four", "five", "six"
            };
            CustomList <string> custom3 = new CustomList <string>();

            //Act
            custom3 = custom1.ZipperList(custom1, custom2);

            //Assert
            Assert.AreEqual("two", custom3[2]);
        }
Exemple #2
0
        public void ZipLists_ZipIntLists_IntAtCorrectIndex()
        {
            //Arrange
            CustomList <int> custom1 = new CustomList <int>()
            {
                1, 2
            };
            CustomList <int> custom2 = new CustomList <int>()
            {
                3, 4
            };
            CustomList <int> custom3 = new CustomList <int>();

            //Act
            custom3 = custom1.ZipperList(custom1, custom2);

            //Assert
            Assert.AreEqual(3, custom3[1]);
        }
Exemple #3
0
        public void ZipLists_ZipStringLists_StringListsZipped()
        {
            //Arrange
            CustomList <string> custom1 = new CustomList <string>()
            {
                "one", "two", "three"
            };
            CustomList <string> custom2 = new CustomList <string>()
            {
                "four", "five", "six"
            };
            CustomList <string> custom3 = new CustomList <string>();

            //Act
            custom3 = custom1.ZipperList(custom1, custom2);

            //Assert
            Assert.AreEqual(6, custom3.Count);
        }
Exemple #4
0
        public void ZipLists_ZipIntLists_IntListsZipped()
        {
            //Arrange
            CustomList <int> custom1 = new CustomList <int>()
            {
                1, 2
            };
            CustomList <int> custom2 = new CustomList <int>()
            {
                3, 4
            };
            CustomList <int> custom3 = new CustomList <int>();

            //Act
            custom3 = custom1.ZipperList(custom1, custom2);

            //Assert
            Assert.AreEqual(4, custom3.Count);
        }