public async Task InitializeNotCreate() { var container = Substitute.For<IContainer>(); container.CreateIfNotExists().Returns(Task.FromResult(false)); var w = new BlobWriter(container); var result = await w.Initialize(); Assert.IsFalse(result); await container.Received().CreateIfNotExists(); }
public async Task InitializeNotCreate() { var container = Substitute.For <IContainer>(); container.CreateIfNotExists().Returns(Task.FromResult(false)); var w = new BlobWriter(container); var result = await w.Initialize(); Assert.IsFalse(result); await container.Received().CreateIfNotExists(); }