public void Extant_value_cleared_from_repository() { // Where TestRecorder.Add("something", 2); // When TestCommand.Execute("clear"); // Then Assert.Throws( typeof(KeyNotFoundException), delegate() { TestRecorder.GetValueByKey("something"); }); }
public void New_value_is_added_to_empty_repository() { TestCommand.Execute("value key 1"); Assert.That(TestRecorder.GetValueByKey("key"), Is.EqualTo(1)); }