public void get_simple() { var dict = new Dictionary<string, object>{ {"a", 1}, {"b", true}, {"c", false} }; dict.Get<int>("a").ShouldBe(1); dict.Get<bool>("b").ShouldBeTrue(); dict.Get<bool>("c").ShouldBeFalse(); }