public void Should_throw_when_no_RdfWriter_is_given() { EntitySource.Awaiting(instance => instance.Write(new StreamWriter(new MemoryStream()), null)).ShouldThrow <ArgumentNullException>().Which.ParamName.Should().Be("rdfWriter"); }
public void Should_throw_when_no_input_stream_is_given() { EntitySource.Awaiting(instance => instance.Read(null, null)) .ShouldThrow <ArgumentNullException>().Which.ParamName.Should().Be("streamReader"); }