public void should_fail_if_not_a_dictionary() { Assert.Throws <ArgumentException>(() => GenericDictionaryAdapter.Create(new object())); }
public void should_return_object_if_it_implements_idictionary() { var dictionary = new Dictionary <string, string>(); GenericDictionaryAdapter.Create(dictionary).ShouldBeSameAs(dictionary); }