public void Given_Uri_When_WithBaseLocation_Invoked_Then_It_Should_Return_Result(string uri) { var instance = new BlobStorageSchemaSink(); var result = instance.WithBaseLocation(new Uri(uri)); result.BaseLocation.Trim('/').Should().BeEquivalentTo(uri.Trim('/')); }
public void Given_Null_Uri_When_WithBaseLocation_Invoked_Then_It_Should_Throw_Exception() { var instance = new BlobStorageSchemaSink(); Action action = () => instance.WithBaseLocation((Uri)null); action.Should().Throw <ArgumentNullException>(); }