Ejemplo n.º 1
0
        public void PutData(Solution solution)
        {
            string line1, line2;

            string[] newSolution = Decimals.Round(solution, 2);
            line1 = "x1=" + newSolution[0];
            line2 = "x2=" + newSolution[1];
            _output.WriteData(new string[2] {
                line1, line2
            });
        }
Ejemplo n.º 2
0
        public void PutData(Solution solution)
        {
            EmpiricalTestingConsole.Write(new string[1] {
                "public void PutData(Solution solution)"
            });
            EmpiricalTestingConsole.Write(new string[1] {
                "solution=" + solution.ToString()
            });
            EmpiricalTestingConsole.Write(new string[2] {
                "solution.Root1=" + solution.Root1.ToString(), "solution.Root2=" + solution.Root2.ToString()
            });
            string line1, line2;

            EmpiricalTestingConsole.Write(new string[1] {
                "string line1, line2"
            });
            string[] newSolution = Decimals.Round(solution, 2);
            EmpiricalTestingConsole.Write(new string[1] {
                "string[] newSolution = Decimals.Round(solution, 2)"
            });
            EmpiricalTestingConsole.Write(new string[2] {
                "newSolution[0]=" + newSolution[0], "newSolution[1]=" + newSolution[1]
            });
            line1 = "x1=" + newSolution[0];
            EmpiricalTestingConsole.Write(new string[1] {
                "line1 = " + "x1 = " + " + newSolution[0]"
            });
            EmpiricalTestingConsole.Write(new string[1] {
                "line1=" + line1
            });
            line2 = "x2=" + newSolution[1];
            EmpiricalTestingConsole.Write(new string[1] {
                "line2 = " + "x2 = " + " + newSolution[1]"
            });
            EmpiricalTestingConsole.Write(new string[1] {
                "line2=" + line2
            });
            _output.WriteData(new string[2] {
                line1, line2
            });
            EmpiricalTestingConsole.Write(new string[1] {
                "_output.WriteData(new string[2] {line1, line2})"
            });
        }