public void XmlTest() { SchemaInfo schema = new SchemaInfo("Id", CachedTypes.Guid); schema.DatabaseGeneratedOption = StoreGeneratedPattern.None; schema.DefaultValue = Guid.Empty.ToString(); schema.IsKey = true; schema.IsNullable = false; schema.MaxLength = 32; schema.ReadOnly = false; schema.SqlValueType = SqlValueType.Parameterized;; string xml = schema.XmlSerialize(); SchemaInfo copy = schema.Copy(); Stopwatch bench = Stopwatch.StartNew(); for (int j = 0; j < 100; ++j) copy = schema.Copy(); bench.Stop(); Debug.WriteLine("Schema Xml Copy: " + bench.ElapsedMilliseconds); Assert.IsNotNull(copy); }