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"); }); }