Example #1
0
        public void PFS_GetVariable_string_Exception_Error()
        {
            using (PFS pfs = new PFS(fi))
            {
                Assert.IsNotNull(fi);
                Assert.IsTrue(fi.Exists);
                Assert.AreEqual(fileName, fi.FullName);

                string strRet = pfs.GetVariableString("FemEngineHD/DOMAIN", "coordinate_type", 3);
                Assert.IsTrue(string.IsNullOrWhiteSpace(strRet));
                Assert.IsFalse(string.IsNullOrWhiteSpace(pfs.ErrorMessage));
            }
        }
Example #2
0
        public void PFS_GetVariable_string_OK()
        {
            using (PFS pfs = new PFS(fi))
            {
                Assert.IsNotNull(fi);
                Assert.IsTrue(fi.Exists);
                Assert.AreEqual(fileName, fi.FullName);

                string strRet = pfs.GetVariableString("FemEngineHD/DOMAIN", "coordinate_type", 1);
                Assert.IsNotNull(strRet);
                Assert.AreEqual("LONG/LAT", strRet);
                Assert.AreEqual("", pfs.ErrorMessage);
            }
        }