Ejemplo n.º 1
0
        public void ShouldThrowXmlExceptionIfResultNull()
        {
            // pass the empty file to provoke the exception
            var path = @"C:\Users\Nino\Desktop\test\file2.xml";
            IFileReader reader = new FileReader();
            var ex = Assert.Throws<XmlException>(() => reader.GetContent(path));

            Assert.Equal(ex.GetType(), typeof(XmlException));
        }