// Worker to ensure we set values from loaded testfiles.
        internal TestFileReader LoadTestDataFile(string strFileName)
        {
            var tdf = new TestFileReader(/*isTwoDimensional:*/ false);

            tdf.Load(strFileName);
            GoalFunctionValueX = tdf.GoalX;
            GoalFunctionValueY = tdf.GoalY;
            ExpectedUnsatisfiedConstraintCount = tdf.UnsatisfiableConstraintCount;
            return(tdf);
        }
示例#2
0
        // Worker to ensure we set values from loaded testfiles.

        internal TestFileReader LoadTestDataFile(string strFileName)
        {
            var tdf = new TestFileReader(/*isTwoDimensional:*/ true);

            tdf.Load(strFileName);
            MinPaddingX        = tdf.PaddingX;
            MinPaddingY        = tdf.PaddingY;
            GoalFunctionValueX = tdf.GoalX;
            GoalFunctionValueY = tdf.GoalY;
            return(tdf);
        }
        // Worker to ensure we set values from loaded testfiles.

        internal TestFileReader LoadTestDataFile(string strFileName)
        {
            var tdf = new TestFileReader(/*isTwoDimensional:*/ true);
            tdf.Load(strFileName);
            MinPaddingX = tdf.PaddingX;
            MinPaddingY = tdf.PaddingY;
            GoalFunctionValueX = tdf.GoalX;
            GoalFunctionValueY = tdf.GoalY;
            return tdf;
        }
 public TestFileReader LoadFile(string strFileName)
 {
     // The SolverFoundation stuff has no base class in UnitTests so just load the file directly here.
     var tdf = new TestFileReader(/*isTwoDimensional:*/ false);
     tdf.Load(strFileName);
     return tdf;
 }
 // Worker to ensure we set values from loaded testfiles.
 internal TestFileReader LoadTestDataFile(string strFileName)
 {
     var tdf = new TestFileReader(/*isTwoDimensional:*/ false);
     tdf.Load(strFileName);
     GoalFunctionValueX = tdf.GoalX;
     GoalFunctionValueY = tdf.GoalY;
     ExpectedUnsatisfiedConstraintCount = tdf.UnsatisfiableConstraintCount;
     return tdf;
 }