public void test_WHEN_xml_with_1_join_is_correct_THEN_expression_is_valid() { var xml = "<Joins>" + "<Join Type=\"LEFT\" ListAlias=\"Customers\">" + "<Eq>" + "<FieldRef Name=\"CustomerName\" RefType=\"Id\" />" + "<FieldRef List=\"Customers\" Name=\"Id\" />" + "</Eq>" + "</Join>" + "</Joins>"; var analyzer = new ReJoinAnalyzer(XmlHelper.Get(xml), null); Assert.IsTrue(analyzer.IsValid()); }
public void test_WHEN_xml_is_null_THEN_expression_is_not_valid() { var analyzer = new ReJoinAnalyzer(null, null); Assert.IsFalse(analyzer.IsValid()); }