Ejemplo n.º 1
0
        public void TestParseWhere2()
        {
            var result = DependencyBuilder.TryParsingDependentFields("location_id=#location");

            Assert.AreEqual(1, result.Count);
            Assert.IsTrue(result.Contains("location"));
        }
Ejemplo n.º 2
0
        public void TestParseWhere()
        {
            var result = DependencyBuilder.TryParsingDependentFields("field1=#field1 and field2=#field2");

            Assert.AreEqual(2, result.Count);
            Assert.IsTrue(result.Contains("field1"));
            Assert.IsTrue(result.Contains("field2"));
        }
Ejemplo n.º 3
0
        public void TestParseWhereNull()
        {
            var result = DependencyBuilder.TryParsingDependentFields(null);

            Assert.AreEqual(0, result.Count);
        }