Esempio n. 1
0
        public void ZipListProperties_ListPropertiesint_ListPropertiesZipped()
        {
            //Arrange
            ListProperties <int> expectedResult = new ListProperties <int>()
            {
                1, 2, 3, 4
            };
            ListProperties <int> numbers      = new ListProperties <int>();
            ListProperties <int> moreNumbers  = new ListProperties <int>();
            ListProperties <int> actualResult = new ListProperties <int>();

            numbers.Add(1);
            numbers.Add(3);
            moreNumbers.Add(2);
            moreNumbers.Add(4);

            //Act
            actualResult = numbers.Zip(moreNumbers);

            //Assert
            Assert.AreEqual(expectedResult.ToString(), actualResult.ToString());
        }
Esempio n. 2
0
        public void ZipListProperties_ListPropertiesobject_ListPropertiesZipped()
        {
            //Arrange
            ListProperties <Objects> objectsA     = new ListProperties <Objects>();
            ListProperties <Objects> objectsB     = new ListProperties <Objects>();
            ListProperties <Objects> actualResult = new ListProperties <Objects>();
            Objects ObjectA = new Objects();
            Objects ObjectB = new Objects();

            objectsA.Add(ObjectA);
            objectsB.Add(ObjectB);
            ListProperties <Objects> expectedResult = new ListProperties <Objects>();

            expectedResult.Add(ObjectA);
            expectedResult.Add(ObjectB);

            //Act
            actualResult = objectsA.Zip(objectsB);

            //Assert
            Assert.AreEqual(expectedResult.ToString(), actualResult.ToString());
        }
Esempio n. 3
0
        public void ZipListProperties_ListPropertiesString_ListPropertiesZipped()
        {
            //Arrange
            ListProperties <string> expectedResult = new ListProperties <string>();

            expectedResult.Add("A");
            expectedResult.Add("B");
            expectedResult.Add("C");
            expectedResult.Add("D");
            ListProperties <string> stringsA     = new ListProperties <string>();
            ListProperties <string> stringsB     = new ListProperties <string>();
            ListProperties <string> actualResult = new ListProperties <string>();

            stringsA.Add("A");
            stringsA.Add("C");
            stringsB.Add("B");
            stringsB.Add("D");

            //Act
            actualResult = stringsA.Zip(stringsB);

            //Assert
            Assert.AreEqual(expectedResult.ToString(), actualResult.ToString());
        }