Exemple #1
0
 public void TestCheckVariablesTauMoreThanInterval()
 {
     DifferentialEquationSystemHelpers.CheckVariables(
         differentialEquationSystem.ExpressionSystem,
         differentialEquationSystem.LeftVariables,
         differentialEquationSystem.TimeVariable,
         100,
         differentialEquationSystem.TEnd);
 }
Exemple #2
0
 public void TestCheckVariablesTimeVariableMoreThanTEnd()
 {
     DifferentialEquationSystemHelpers.CheckVariables(
         differentialEquationSystem.ExpressionSystem,
         differentialEquationSystem.LeftVariables,
         new Variable("time", 100),
         differentialEquationSystem.Tau,
         differentialEquationSystem.TEnd);
 }
Exemple #3
0
 public void TestCheckVariablesTauLessThanZero()
 {
     DifferentialEquationSystemHelpers.CheckVariables(
         differentialEquationSystem.ExpressionSystem,
         differentialEquationSystem.LeftVariables,
         differentialEquationSystem.TimeVariable,
         -100,
         differentialEquationSystem.TEnd);
 }
Exemple #4
0
 public void TestCheckVariablesTimeVariableNull()
 {
     DifferentialEquationSystemHelpers.CheckVariables(
         differentialEquationSystem.ExpressionSystem,
         differentialEquationSystem.LeftVariables,
         null,
         differentialEquationSystem.Tau,
         differentialEquationSystem.TEnd);
 }
Exemple #5
0
 public void TestCheckVariablesVariableEmpty()
 {
     DifferentialEquationSystemHelpers.CheckVariables(
         differentialEquationSystem.ExpressionSystem,
         new List <Variable>(),
         differentialEquationSystem.TimeVariable,
         differentialEquationSystem.Tau,
         differentialEquationSystem.TEnd);
 }
Exemple #6
0
 public void TestCheckVariablesExpressionEmpty()
 {
     DifferentialEquationSystemHelpers.CheckVariables(
         new List <Expression>(),
         differentialEquationSystem.LeftVariables,
         differentialEquationSystem.TimeVariable,
         differentialEquationSystem.Tau,
         differentialEquationSystem.TEnd);
 }
Exemple #7
0
 public void TestCheckVariablesAllCorrect()
 {
     DifferentialEquationSystemHelpers.CheckVariables(
         differentialEquationSystem.ExpressionSystem,
         differentialEquationSystem.LeftVariables,
         differentialEquationSystem.TimeVariable,
         differentialEquationSystem.Tau,
         differentialEquationSystem.TEnd);
 }
Exemple #8
0
        public void TestCheckVariablesExpressionNotEqualVariables()
        {
            List <Variable> vars = new List <Variable>();

            DifferentialEquationSystemHelpers.CopyVariables(differentialEquationSystem.LeftVariables, vars);
            vars.Add(new Variable("x1", 8));

            DifferentialEquationSystemHelpers.CheckVariables(
                differentialEquationSystem.ExpressionSystem,
                vars,
                differentialEquationSystem.TimeVariable,
                differentialEquationSystem.Tau,
                differentialEquationSystem.TEnd);
        }