Ejemplo n.º 1
0
        public void NegTestGallons()
        {
            double actual27;
            double expected27 = -0.0067999;

            Form1 test = new Form1();
            //test.Show();
            //test.Activate();

            test.textBox20text = "-2"; // linear diamter
            test.textBox21text = "-3"; // rod diamter
            test.textBox22text = "-1"; // linear length
            test.textBox23text = "-1"; // volumetric effeciancy

            test.button19_Click(null, null);

            actual27 = Convert.ToDouble(test.textBox27text);

            Assert.AreEqual(expected27, actual27);
        }
Ejemplo n.º 2
0
        public void NegTestBarrels()
        {
            double actual28;
            double expected28 = -0.0001619043;

            Form1 test = new Form1();
            //test.Show();
            //test.Activate();

            test.textBox20text = "-2"; // linear diamter
            test.textBox21text = "-3"; // rod diamter
            test.textBox22text = "-1"; // linear length
            test.textBox23text = "-1"; // volumetric effeciancy

            test.button19_Click(null, null);

            actual28 = Convert.ToDouble(test.textBox28text);

            Assert.AreEqual(expected28, actual28);
        }
Ejemplo n.º 3
0
        public void NegTestCubicInches()
        {
            double actual26;
            double expected26 = -1.570796;

            Form1 test = new Form1();
            //test.Show();
            //test.Activate();

            test.textBox20text = "-2"; // linear diamter
            test.textBox21text = "-3"; // rod diamter
            test.textBox22text = "-1"; // linear length
            test.textBox23text = "-1"; // volumetric effeciancy

            test.button19_Click(null, null);

            actual26 = Convert.ToDouble(test.textBox26text);

            Assert.AreEqual(expected26, actual26);
        }
Ejemplo n.º 4
0
        public void TriplexZeroTestGallons()
        {
            double actual27;
            double expected27 = 0;

            Form1 test = new Form1();
            //test.Show();
            //test.Activate();

            test.radioButton20state = true;
            test.textBox20text = "0"; // linear diamter
            test.textBox22text = "0"; // linear length
            test.textBox23text = "0"; // volumetric effeciancy

            test.button19_Click(null, null);

            actual27 = Convert.ToDouble(test.textBox27text);

            Assert.AreEqual(expected27, actual27);
        }
Ejemplo n.º 5
0
        public void TriplexPosTestCubicInches()
        {
            double actual26;
            double expected26 = 4752;

            Form1 test = new Form1();
            //test.Show();
            //test.Activate();

            test.radioButton20state = true;
            test.textBox20text = "12"; // linear diamter
            test.textBox22text = "14"; // linear length
            test.textBox23text = "1"; // volumetric effeciancy

            test.button19_Click(null, null);

            actual26 = Convert.ToDouble(test.textBox26text);

            Assert.AreEqual(expected26, actual26, "ROUNDING ERROR");
        }
Ejemplo n.º 6
0
        public void TriplexNegTestBarrels()
        {
            double actual28;
            double expected28 = 0.000971817;

            Form1 test = new Form1();
            //test.Show();
            //test.Activate();

            test.radioButton20state = true;
            test.textBox20text = "-2"; // linear diamter
            test.textBox22text = "-1"; // linear length
            test.textBox23text = "-1"; // volumetric effeciancy

            test.button19_Click(null, null);

            actual28 = Convert.ToDouble(test.textBox28text);

            Assert.AreEqual(expected28, actual28, "ROUNDING ERROR");
        }
Ejemplo n.º 7
0
        public void PosTestGallons()
        {
            double actual27;
            double expected27 = 11.33333;

            Form1 test = new Form1();
            //test.Show();
            //test.Activate();

            test.textBox20text = "12"; // linear diamter
            test.textBox21text = "13"; // rod diamter
            test.textBox22text = "14"; // linear length
            test.textBox23text = "1"; // volumetric effeciancy

            test.button19_Click(null, null);

            actual27 = Convert.ToDouble(test.textBox27text);

            Assert.AreEqual(expected27, actual27, "SHOULD BE EQUAL");
        }
Ejemplo n.º 8
0
        public void PosTestCubicInches()
        {
            double actual26, actual27, actual28;
            double expected26 = 2618, expected27 = 11.33333333333333333, expected28 = 0.26984;

            Form1 test = new Form1();
            //test.Show();
            //test.Activate();

            test.textBox20text = "12"; // linear diamter
            test.textBox21text = "13"; // rod diamter
            test.textBox22text = "14"; // linear length
            test.textBox23text = "1"; // volumetric effeciancy

            test.button19_Click(null, null);

            actual26 = Convert.ToDouble(test.textBox26text);
            actual27 = Convert.ToDouble(test.textBox27text);
            actual28 = Convert.ToDouble(test.textBox28text);

            Assert.AreEqual(expected26, actual26);
        }
Ejemplo n.º 9
0
        public void PosTestBarrels()
        {
            double actual28;
            double expected28 = 0.26984;

            WindowsFormsApplication5.Form1 test = new WindowsFormsApplication5.Form1();
            //test.Show();
            //test.Activate();

            test.textBox20.Text = "12"; // linear diamter
            test.textBox21.Text = "13"; // rod diamter
            test.textBox22.Text = "14"; // linear length
            test.textBox23.Text = "1"; // volumetric effeciancy

            test.button19_Click(null, null);

            actual28 = Convert.ToDouble(test.textBox28.Text);

            Assert.AreEqual(expected28, actual28);
        }
Ejemplo n.º 10
0
        public void ZeroTestGallons()
        {
            double actual27;
            double expected27 = 0;

            WindowsFormsApplication5.Form1 test = new WindowsFormsApplication5.Form1();
            //test.Show();
            //test.Activate();

            test.textBox20.Text = "0"; // linear diamter
            test.textBox21.Text = "0"; // rod diamter
            test.textBox22.Text = "0"; // linear length
            test.textBox23.Text = "0"; // volumetric effeciancy

            test.button19_Click(null, null);

            actual27 = Convert.ToDouble(test.textBox27.Text);

            Assert.AreEqual(expected27, actual27);
        }
Ejemplo n.º 11
0
        public void TriplexZeroTestCubicInches()
        {
            double actual26;
            double expected26 = 0;

            WindowsFormsApplication5.Form1 test = new WindowsFormsApplication5.Form1();
            //test.Show();
            //test.Activate();

            test.radioButton20.Checked = true;
            test.textBox20.Text = "0"; // linear diamter
            test.textBox22.Text = "0"; // linear length
            test.textBox23.Text = "0"; // volumetric effeciancy

            test.button19_Click(null, null);

            actual26 = Convert.ToDouble(test.textBox26.Text);

            Assert.AreEqual(expected26, actual26);
        }
Ejemplo n.º 12
0
        public void TriplexPosTestGallons()
        {
            double actual27;
            double expected27 = 20.5714;

            WindowsFormsApplication5.Form1 test = new WindowsFormsApplication5.Form1();
            //test.Show();
            //test.Activate();

            test.radioButton20.Checked = true;
            test.textBox20.Text = "12"; // linear diamter
            test.textBox22.Text = "14"; // linear length
            test.textBox23.Text = "1"; // volumetric effeciancy

            test.button19_Click(null, null);

            actual27 = Convert.ToDouble(test.textBox27.Text);

            Assert.AreEqual(expected27, actual27, "ROUNDING ERROR");
        }