public void Create_WhenCalledWithByteArray_ShouldReturnMemoryStream() { //Arrange var factory = new MemoryStreamFactory(); //Act var result = factory.Create(new byte[] { }); //Assert result.ShouldBeOfType(typeof(MemoryStream)); }
public void Create_WhenCalled_ShouldReturnMemoryStream() { //Arrange var factory = new MemoryStreamFactory(); //Act var result = factory.Create(); //Assert result.ShouldBeOfType(typeof(MemoryStream)); result.ToArray().ShouldBeEmpty(); }