public void Should_implicit_cast_dictionary_to_property_set() { var dictionary = new Dictionary <string, object> { { "P1", 1 }, { "P2", "2" }, { "P3", null }, }; var propertySet = PropertySet.From(dictionary); propertySet.Count.ShouldBe(3); propertySet["P1"].ShouldBe(1); propertySet["P2"].ShouldBe("2"); propertySet["P3"].ShouldBeNull(); }