public void GenericAlignment_instantiateWithBeginAndEndStation()
        {
            testList = new List<Double>();
             testList.Add(1000.0);
             testList.Add(2000.0);
             GenericAlignment align = new GenericAlignment(testList);

             bool actualBool = true;
             actualBool = actualBool && (0 == utilFunctions.tolerantCompare(align.BeginStation, 1000.0, 0.00001));
             actualBool = actualBool && (0 == utilFunctions.tolerantCompare(align.EndStation, 2000.0, 0.00001));

             Assert.AreEqual(expected: true, actual: actualBool);
        }
        public void GenericAlignment_instantiateWithBeginStationOnly()
        {
            testList = new List<Double>();
             testList.Add(1000.0);
             GenericAlignment align = new GenericAlignment(testList);

             double actualDbl = align.BeginStation;
             double expectedDbl = 1000.0;

             Assert.AreEqual(expected: expectedDbl, actual: actualDbl, delta: 0.0000001);
        }
Ejemplo n.º 3
0
 public GenericAlignment(GenericAlignment anAlignment)
 {
     Parent = anAlignment;
 }