public void CanRead_ValidReader_ReturnsExpected(string xmlString, bool expected)
 {
     using (var stringReader = new StringReader(xmlString))
         using (XmlReader reader = XmlReader.Create(stringReader))
         {
             var formatter = new AtomPub10CategoriesDocumentFormatter();
             Assert.Equal(expected, formatter.CanRead(reader));
         }
 }
        public void CanRead_NullReader_ThrowsArgumentNullException()
        {
            var formatter = new AtomPub10CategoriesDocumentFormatter();

            AssertExtensions.Throws <ArgumentNullException>("reader", () => formatter.CanRead(null));
        }