public void AddScaledDataPointNullTest()
        {
            using (ShimsContext.Create())
            {

                var target = new SimulatedPLC {Project = null};

                string point = "Test";
                float engHi = 100;
                float engLow = 0;
                float rawHi = 4;
                float rawLow = 20;
                var actual = (PLCDataPoint) target.AddDataPoint(point);
                actual.DataPointScaling( engHi, engLow, rawHi, rawLow);
                Assert.IsNotNull(actual);
                Assert.AreEqual(point, actual.Symbol);
                /*Assert.AreEqual(engHi, actual.ScaleEngHigh);
                Assert.AreEqual(engLow, actual.ScaleEngLow);
                Assert.AreEqual(rawHi, actual.ScaleRawHigh);
                Assert.AreEqual(rawLow, actual.ScaleRawLow);*/
            }
        }
        public void AddScaledDataPointTest()
        {
            using (ShimsContext.Create())
            {
                ShimPCS7Project.AllInstances.PCS7SymbolTableGet = (proj)    => new DotNetSiemensPLCToolBoxLibrary.DataTypes.Projectfolders.Step7V5.SymbolTable();
                ShimSymbolTable.AllInstances.GetEntryFromSymbolString = (table, s) => new SymbolTableEntry()
                    {
                        Comment = "Test Point",
                        DataType = "Real",
                        Operand =  "EW 1001",
                        OperandIEC = "IW 1001",
                        Symbol = s
                    };

                var target = new SimulatedPLC {Project = new PCS7Project()};

                string point = "Test";
                float engHi = 100;
                float engLow = 0;
                float rawHi = 4;
                float rawLow = 20;
                var actual = (PLCDataPoint) target.AddDataPoint(point);
                var i = actual.Offset;
                actual.DataPointScaling(engHi, engLow, rawHi, rawLow);
                var lactual = (PLCDataPoint)target.AddDataPoint("IB 456.1");
                lactual.DataPointScaling(engHi, engLow, rawHi, rawLow);
                i = lactual.Offset;
                Assert.IsNotNull(actual);
                Assert.AreEqual(point, actual.Symbol);
                /*Assert.AreEqual(engHi, actual.ScaleEngHigh);
                Assert.AreEqual(engLow, actual.ScaleEngLow);
                Assert.AreEqual(rawHi, actual.ScaleRawHigh);
                Assert.AreEqual(rawLow, actual.ScaleRawLow);*/
            }
        }