示例#1
0
        public void ClassNameFilter_ToXml_Regex()
        {
            TestFilter filter = new ClassNameFilter("FULLNAME")
            {
                IsRegex = true
            };

            Assert.That(filter.ToXml(false).OuterXml, Is.EqualTo("<class re=\"1\">FULLNAME</class>"));
        }
示例#2
0
        public void ClassNameFilter_ToXml()
        {
            TestFilter filter = new ClassNameFilter("FULLNAME");

            Assert.That(filter.ToXml(false).OuterXml, Is.EqualTo("<class>FULLNAME</class>"));
        }
示例#3
0
 public void ClassNameFilter_ToXml_Regex()
 {
     TestFilter filter = new ClassNameFilter("FULLNAME") { IsRegex = true };
     Assert.That(filter.ToXml(false).OuterXml, Is.EqualTo("<class re=\"1\">FULLNAME</class>"));
 }
示例#4
0
 public void ClassNameFilter_ToXml()
 {
     TestFilter filter = new ClassNameFilter("FULLNAME");
     Assert.That(filter.ToXml(false).OuterXml, Is.EqualTo("<class>FULLNAME</class>"));
 }