private XmlSchemaSet GetXmlSchemaSet()
        {
            XmlSchemaSet schemas = new XmlSchemaSet();

            schemas.Add(SampleClass.SchemaUri, SampleClass.GetSchemaReader());
            return(schemas);
        }
        public void WithSchemaUriAndSchemaReader()
        {
            SampleClass actual = (SampleClass)XmlSerializationUtility.DeserializeUsingSchema(
                GetReaderForDefaultFragment(1),
                typeof(SampleClass),
                SampleClass.SchemaUri,
                SampleClass.GetSchemaReader());

            Assert.That(actual, Is.Not.Null);
            Assert.That(actual.Value, Is.EqualTo(1));
        }