);                Assert.AreEqual(source, dest);          }            [Test]          public void CanBeXmlSerialized()          {              var source = new MongoRegex("exp", "opt");              var serializer = new XmlSerializer(typeof(MongoRegex));                var writer = new StringWriter();              serializer.Serialize(writer, source);              var dest = (MongoRegex)serializer.Deserialize(new StringReader(writer.ToString()));                Assert.AreEqual(source, dest);          }            [Test]          public void CanBeXmlSerialized