public void should_return_stream_upon_calling_CreateReadStream()
        {
            using (var stream = _sut.CreateReadStream())
            {
                stream.Should().NotBeNull();
            }


            //var action = new Action(() => _sut.CreateReadStream());
            //action.Should().Throw<InvalidOperationException>();
        }
Ejemplo n.º 2
0
        public void should_throw_FileNotFoundException_upon_calling_CreateReadStream()
        {
            var action = new Action(() => _sut.CreateReadStream());

            action.Should().Throw <FileNotFoundException>();
        }