Ejemplo n.º 1
0
        public void TestMethod7()
        {
            Program.Main(new string[] { "flow7.xml" });                     // this file resides in processFlow\processFlowTest\bin\Debug
            int[]      required = new int[] { 0, 3 };
            List <int> amounts  = ProcessFlowFactory.LoadOutput("out.xml"); // this file resides in processFlow\processFlowTest\bin\Debug

            Assert.AreEqual(required.Length, amounts.Count);
            for (int i = 0; i < amounts.Count; i++)
            {
                Assert.AreEqual(required[i], amounts[i]);
            }
        }
Ejemplo n.º 2
0
        public void TestMethod5()
        {
            // add code here
            //Assert.Fail("Not yet defined.");
            Program.Main(new string[] { "flow5.xml" });                     // this file resides in processFlow\processFlowTest\bin\Debug
            int[]      required = new int[] { 15, 15, 39 };
            List <int> amounts  = ProcessFlowFactory.LoadOutput("out.xml"); // this file resides in processFlow\processFlowTest\bin\Debug

            Assert.AreEqual(required.Length, amounts.Count);
            for (int i = 0; i < amounts.Count; i++)
            {
                Assert.AreEqual(required[i], amounts[i]);
            }
        }