public void CanRoundtripGenericNotifyingDictionary() { var dict = new NotifyingDictionary <string, object>() { { "BlahKey", "Blah" }, { "FoodKey", "Foo" } }; var json = SerializationService.ToJson(dict); var rehydrated = SerializationService.FromJson <NotifyingDictionary <string, object> >(json); CollectionAssert.AreEquivalent(dict, rehydrated); }
public void CanRoundtripGenericNotifyingDictionary() { var dict = new NotifyingDictionary<string, object>() { {"BlahKey", "Blah"}, {"FoodKey", "Foo"} }; var json = SerializationService.ToJson(dict); var rehydrated = SerializationService.FromJson<NotifyingDictionary<string, object>>(json); CollectionAssert.AreEquivalent(dict, rehydrated); }
public Locator() { Items = new NotifyingDictionary<object>(); }