public void Create_ShouldReturnCreatedXmlTextReader_OnBeingCalledWithValidParameters() { var factory = new XmlTextReaderFactory(); var xmlTextReader = factory.Create("TestData/cim.xml", Encoding.UTF8); xmlTextReader.Should().NotBeNull(); xmlTextReader.Should().BeOfType <XmlTextReader>(); }
public void Create_ShouldThrowInvalidArgumentError_OnBeginCalledWithNullPath() { var factory = new XmlTextReaderFactory(); factory.Invoking(x => x.Create(null, Encoding.UTF8)).Should().Throw <ArgumentNullException>(); }