コード例 #1
0
        public void SerializeWithEmptyPattern()
        {
            RegexSelector selector   = new RegexSelector();
            XmlElement    serialized = selector.Serialize();

            Assert.Equals(SerializedEmptyPattern, serialized.OwnerDocument.InnerXml);
        }
コード例 #2
0
        public void Serialize()
        {
            RegexSelector selector = new RegexSelector();

            selector.Pattern = @".*Foo.*";
            XmlElement serialized = selector.Serialize();

            Assert.Equals(SerializedContent, serialized.OwnerDocument.InnerXml);
        }
コード例 #3
0
        public void SerializeWithSpecialCharacters()
        {
            RegexSelector selector = new RegexSelector();

            selector.Pattern = ".*<.*";
            XmlElement serialized = selector.Serialize();

            Assert.Equals(SerializedSpecialCharacters, serialized.OwnerDocument.InnerXml);
        }
コード例 #4
0
 public void Serialize() {
    RegexSelector selector = new RegexSelector();
    selector.Pattern = @".*Foo.*";
    XmlElement serialized = selector.Serialize();
    Assert.Equals(SerializedContent, serialized.OwnerDocument.InnerXml);
 }
コード例 #5
0
 public void SerializeWithSpecialCharacters() {
    RegexSelector selector = new RegexSelector();
    selector.Pattern = ".*<.*";
    XmlElement serialized = selector.Serialize();
    Assert.Equals(SerializedSpecialCharacters, serialized.OwnerDocument.InnerXml);
 }
コード例 #6
0
 public void SerializeWithEmptyPattern() {
    RegexSelector selector = new RegexSelector();
    XmlElement serialized = selector.Serialize();
    Assert.Equals(SerializedEmptyPattern, serialized.OwnerDocument.InnerXml);
 }