예제 #1
0
 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");
 }
예제 #2
0
 public void Should_throw_when_no_input_stream_is_given()
 {
     EntitySource.Awaiting(instance => instance.Read(null, null))
     .ShouldThrow <ArgumentNullException>().Which.ParamName.Should().Be("streamReader");
 }