public void Cannot_retrieve_when_property_is_List_of_strings() { var retriever = new EnumListValueRetriever(); var result = retriever.CanRetrieve(new KeyValuePair <string, string>(), typeof(List <string>), typeof(List <string>)); result.Should().BeFalse(); }
public void Can_retrieve_when_property_is_ilist_of_enums() { var retriever = new EnumListValueRetriever(); var result = retriever.CanRetrieve(new KeyValuePair <string, string>(), typeof(IList <TestEnum>), typeof(IList <TestEnum>)); result.Should().BeTrue(); }