Beispiel #1
0
        public void testEqual_NumberInput()
        {
            DynamoModel model        = Controller.DynamoModel;
            string      testFilePath = Path.Combine(logicTestFolder, "testEqualNumberInput.dyn");

            model.Open(testFilePath);
            dynSettings.Controller.RunExpression(null);
            Equal watch1 = model.CurrentWorkspace.NodeFromWorkspace <Equal>("8c3ffac4-60e3-4898-9c8d-ffb5ccee2211");
            Equal watch2 = model.CurrentWorkspace.NodeFromWorkspace <Equal>("f935bd04-cade-4b63-9d4c-a85c778cafea");

            double actualResult1   = watch1.GetValue(0).GetDoubleFromFSchemeValue();
            double actualResult2   = watch2.GetValue(0).GetDoubleFromFSchemeValue();
            double expectedResult1 = 1;
            double expectedResult2 = 0;

            Assert.AreEqual(expectedResult1, actualResult1);
            Assert.AreEqual(expectedResult2, actualResult2);
        }