public void Throws_if_dictionary_type_with_additional_properties() { using var context = new SharedChangeContext <Dictionary <string, int> >(b => b.IndexerProperty <int>("Snoopy")); Assert.Equal( ProxiesStrings.DictionaryCannotBeProxied( typeof(Dictionary <string, int>).ShortDisplayName(), "STET (Dictionary<string, int>)", typeof(IDictionary <string, int>).ShortDisplayName()), Assert.Throws <InvalidOperationException>(() => context.Model).Message); }
public void Does_not_throw_if_dictionary_type_with_only_PKs() { using var context = new SharedChangeContext <Dictionary <string, int> >(); Assert.True(context.Model.IsShared(typeof(Dictionary <string, int>))); }