Esempio n. 1
0
        public void testLessThan_StringInput()
        {
            DynamoModel model        = Controller.DynamoModel;
            string      testFilePath = Path.Combine(logicTestFolder, "testLessThanStringInput.dyn");

            model.Open(testFilePath);
            dynSettings.Controller.RunExpression(null);
            LessThan watch1 = model.CurrentWorkspace.NodeFromWorkspace <LessThan>("604e36a9-df28-43ac-b86e-11f932a9f6e4");
            LessThan watch2 = model.CurrentWorkspace.NodeFromWorkspace <LessThan>("20a2f416-2a13-4afe-af00-c041d5997f40");

            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);
        }