public void ThenIWantAnErrorWhenTheValueIsNotStoredWithCompression() { // Arrange var document = new Document(); // Act // Assert Assert.Throws<InvalidOperationException>(() => document.GetStringWithCompression("Foo")); }