public void SerializeWithEmptyPattern() { RegexSelector selector = new RegexSelector(); XmlElement serialized = selector.Serialize(); Assert.Equals(SerializedEmptyPattern, serialized.OwnerDocument.InnerXml); }
public void Serialize() { RegexSelector selector = new RegexSelector(); selector.Pattern = @".*Foo.*"; XmlElement serialized = selector.Serialize(); Assert.Equals(SerializedContent, serialized.OwnerDocument.InnerXml); }
public void SerializeWithSpecialCharacters() { RegexSelector selector = new RegexSelector(); selector.Pattern = ".*<.*"; XmlElement serialized = selector.Serialize(); Assert.Equals(SerializedSpecialCharacters, serialized.OwnerDocument.InnerXml); }