コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public GenericAlignment(GenericAlignment anAlignment)
 {
     Parent = anAlignment;
 }