Esempio n. 1
0
 /// <summary>
 /// Initializes the test1.
 /// </summary>
 /// <returns>a created and initialized object.</returns>
 public static object InitializeTest1()
 {
     ObjectWithDoubleList lResult = new ObjectWithDoubleList();
     lResult.Int2Values = new List<List<Position>>();
     List<Position> lPosition = new List<Position>();
     lPosition.Add(new Position { X = 77, Y = 03 });
     lPosition.Add(new Position { X = 77, Y = 12 });
     lPosition.Add(new Position { X = 77, Y = 04 });
     lResult.Int2Values.Add(lPosition);
     return lResult;
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes the test0.
        /// </summary>
        /// <returns>a created and initialized object.</returns>
        public static object InitializeTest0()
        {
            ObjectWithDoubleList lResult = new ObjectWithDoubleList();

            lResult.Int2Values = new List <List <Position> >();
            List <Position> lPosition = new List <Position>();

            lPosition.Add(new Position {
                X = 77, Y = 03
            });
            lPosition.Add(null);
            lPosition.Add(new Position {
                X = 77, Y = 04
            });
            lResult.Int2Values.Add(lPosition);
            return(lResult);
        }