Ejemplo n.º 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>"));
        }
Ejemplo n.º 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>"));
        }
Ejemplo n.º 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>"));
 }
Ejemplo n.º 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>"));
 }