Exemplo n.º 1
0
        public void testLessThanOrEqual_StringInput()
        {
            DynamoModel model        = Controller.DynamoModel;
            string      testFilePath = Path.Combine(logicTestFolder, "testLessThanOrEqualStringInput.dyn");

            model.Open(testFilePath);
            dynSettings.Controller.RunExpression(null);
            LessThanEquals watch1 = model.CurrentWorkspace.NodeFromWorkspace <LessThanEquals>("8ed276d0-d1e0-4e38-bcaa-77c2c3b4819f");
            LessThanEquals watch2 = model.CurrentWorkspace.NodeFromWorkspace <LessThanEquals>("4f115ff1-17b2-4386-a38b-4546e7bf39b6");
            LessThanEquals watch3 = model.CurrentWorkspace.NodeFromWorkspace <LessThanEquals>("c3167b61-df46-4034-8319-aefc9e7565d4");

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

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