Inheritance: ValueMatchFilter
Exemple #1
0
        public void PropertyFilter_ToXml_Regex()
        {
            TestFilter filter = new PropertyFilter("Priority", "High")
            {
                IsRegex = true
            };

            Assert.That(filter.ToXml(false).OuterXml, Is.EqualTo("<prop re=\"1\" name=\"Priority\">High</prop>"));
        }
Exemple #2
0
        public void PropertyFilter_ToXml()
        {
            TestFilter filter = new PropertyFilter("Priority", "High");

            Assert.That(filter.ToXml(false).OuterXml, Is.EqualTo("<prop name=\"Priority\">High</prop>"));
        }
Exemple #3
0
 public void PropertyFilter_ToXml_Regex()
 {
     TestFilter filter = new PropertyFilter("Priority", "High") { IsRegex = true };
     Assert.That(filter.ToXml(false).OuterXml, Is.EqualTo("<prop re=\"1\" name=\"Priority\">High</prop>"));
 }
Exemple #4
0
 public void PropertyFilter_ToXml()
 {
     TestFilter filter = new PropertyFilter("Priority", "High");
     Assert.That(filter.ToXml(false).OuterXml, Is.EqualTo("<prop name=\"Priority\">High</prop>"));
 }