Exemple #1
0
        public void StreamExtensions_AddNodeToRoot_should_throw_ArgumentNullException_when_stream_is_null()
        {
            // Arrange
            Stream xDocStream = null;

            // Act
            Action result = () => xDocStream.AddNodeToRoot(Fixture.Create <string>(), Fixture.Create <string>());

            // Assert
            result.Should().Throw <ArgumentNullException>();
        }