public void PCS7ProjectConstructorTest1()
        {
            string      projectFile = string.Empty; // TODO: Initialize to an appropriate value
            PCS7Project target      = new PCS7Project(projectFile);

            Assert.Inconclusive("TODO: Implement code to verify target");
        }
        public void PCS7SymbolTableTest1()
        {
            PCS7Project target = new PCS7Project(); // TODO: Initialize to an appropriate value
            SymbolTable actual;

            actual = target.PCS7SymbolTable;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
 public void GetOutputImageSymbolsOperandsTest()
 {
     PCS7Project target = new PCS7Project(); // TODO: Initialize to an appropriate value
     string[,] expected = null; // TODO: Initialize to an appropriate value
     string[,] actual;
     actual = target.GetOutputImageSymbolsOperands();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
        public void GetOutputImageSymbolsTest()
        {
            PCS7Project target = new PCS7Project(); // TODO: Initialize to an appropriate value

            string[] expected = null;               // TODO: Initialize to an appropriate value
            string[] actual;
            actual = target.GetOutputImageSymbols();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
 public void FileTest1()
 {
     PCS7Project target = new PCS7Project(); // TODO: Initialize to an appropriate value
     string expected = string.Empty; // TODO: Initialize to an appropriate value
     string actual;
     target.File = expected;
     actual = target.File;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
        public void FileTest1()
        {
            PCS7Project target   = new PCS7Project(); // TODO: Initialize to an appropriate value
            string      expected = string.Empty;      // TODO: Initialize to an appropriate value
            string      actual;

            target.File = expected;
            actual      = target.File;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
        public void PCS7ProjectConstructorTest()
        {
            PCS7Project target = new PCS7Project();

            Assert.Inconclusive("TODO: Implement code to verify target");
        }
 public void PCS7SymbolTableTest1()
 {
     PCS7Project target = new PCS7Project(); // TODO: Initialize to an appropriate value
     SymbolTable actual;
     actual = target.PCS7SymbolTable;
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void PCS7ProjectConstructorTest3()
 {
     string projectFile = string.Empty; // TODO: Initialize to an appropriate value
     PCS7Project target = new PCS7Project(projectFile);
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
Example #10
0
 public void PCS7ProjectConstructorTest2()
 {
     PCS7Project target = new PCS7Project();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
Example #11
0
        static void Main(string[] args)
        {
            Console.WriteLine("Sandbox app to test PLCSimConnector.dll");
            var c = new PLCSim();
            var plc = new SimulatedPLC(c);
            //Console.WriteLine(c.GetState());
            var p = new PCS7Project("C:\\Program Files (x86)\\SIEMENS\\Step7\\S7Proj\\KING_M_1\\MID_CTRL\\MID_CTRL.s7p");
            Console.WriteLine("Press Any Key to Continue...");
            bool loop = true;
            while (loop)
            {
                ConsoleKeyInfo val = Console.ReadKey();
                switch (val.KeyChar)
                {
                    case 'g':
                        {
                            Console.WriteLine(c.GetState());
                            break;
                        }
                    case 'r':
                        {
                            plc.UpdateImages();
                            object z = c.ReadOutputImage(10, 20);
                            break;
                        }
                    case 'w':
                        {
                            c.Connect();
                            bool b = true;
                            Object z = b;
                            c.WriteInputPoint(0, 0, ref z);
                            break;
                        }
                    case 'p':
                        {
                            Console.WriteLine(p.Project.ProjectName);
                            Console.WriteLine(p.Project.ProjectDescription);
                           foreach (var te in p.PCS7SymbolTable.SymbolTableEntrys)
                           {
                                    Console.WriteLine(te.Symbol + ": " + te.Operand +" "+ te.DataType + " - " + te.OperandIEC);

                            }
                            break;
                        }
                    case 's':
                        {
                            Console.WriteLine(p.Project.ProjectName);
                            Console.WriteLine(p.Project.ProjectDescription);
                            var nope = p.GetOutputImageSymbols();
                            foreach (var s in nope)
                            {
                                Console.WriteLine(s);
                            }
                            break;
                        }
                    case 'z':
                        {
                            ValueType i;
                            float f = 3;
                            i = f;
                            Console.WriteLine("the type of i is {0}", i.GetType());
                            break;
                        }

                    default:
                        loop = false;
                        break;

                }
            }
        }
Example #12
0
        static void Main(string[] args)
        {
            Console.WriteLine("Sandbox app to test PLCSimConnector.dll");
            var c   = new PLCSim();
            var plc = new SimulatedPLC(c);
            //Console.WriteLine(c.GetState());
            var p = new PCS7Project("C:\\Program Files (x86)\\SIEMENS\\Step7\\S7Proj\\KING_M_1\\MID_CTRL\\MID_CTRL.s7p");

            Console.WriteLine("Press Any Key to Continue...");
            bool loop = true;

            while (loop)
            {
                ConsoleKeyInfo val = Console.ReadKey();
                switch (val.KeyChar)
                {
                case 'g':
                {
                    Console.WriteLine(c.GetState());
                    break;
                }

                case 'r':
                {
                    plc.UpdateImages();
                    object z = c.ReadOutputImage(10, 20);
                    break;
                }

                case 'w':
                {
                    c.Connect();
                    bool   b = true;
                    Object z = b;
                    c.WriteInputPoint(0, 0, ref z);
                    break;
                }

                case 'p':
                {
                    Console.WriteLine(p.Project.ProjectName);
                    Console.WriteLine(p.Project.ProjectDescription);
                    foreach (var te in p.PCS7SymbolTable.SymbolTableEntrys)
                    {
                        Console.WriteLine(te.Symbol + ": " + te.Operand + " " + te.DataType + " - " + te.OperandIEC);
                    }
                    break;
                }

                case 's':
                {
                    Console.WriteLine(p.Project.ProjectName);
                    Console.WriteLine(p.Project.ProjectDescription);
                    var nope = p.GetOutputImageSymbols();
                    foreach (var s in nope)
                    {
                        Console.WriteLine(s);
                    }
                    break;
                }

                case 'z':
                {
                    ValueType i;
                    float     f = 3;
                    i = f;
                    Console.WriteLine("the type of i is {0}", i.GetType());
                    break;
                }

                default:
                    loop = false;
                    break;
                }
            }
        }