public void ThenIWantAnErrorWhenTheValueIsNotStored() { // Arrange var document = new Document(); // Act // Assert Assert.Throws<InvalidOperationException>(() => document.GetInt64("Foo")); }
public void ThenIWantItToBeStored() { // Arrange var document = new Document(); var input = Int64.MaxValue; // Act document.Add(input).Stored().As("Foo"); // Assert var output = document.GetInt64("Foo"); Assert.Equal(input, output); }