public void GetString() { var d = new DObject(); Should.Throw <KeyNotFoundException>(() => d.GetString("key")); d.Set("key", "value"); d.GetString("key").ShouldBe("value"); }