public void ToPropertyDictionary_ReturnsTrue() { var o = new { int_list = new[] {1, 2, 3}, obj = new object() }; var res = o.ToPropertyDictionary(); 2.ShouldEqual(res.Keys.Count); "int_list".ShouldEqual(res.Keys.ElementAt(0)); "obj".ShouldEqual(res.Keys.ElementAt(1)); }