public void GetValueType_returns_null_for_non_dictionary_type(GenericDictionaryFactory sut) { // Act var result = sut.GetValueType(typeof(ISampleService)); // Assert Assert.That(result, Is.Null); }
public void GetValueType_returns_correct_key_type_for_generic_dictionary(GenericDictionaryFactory sut) { // Act var result = sut.GetValueType(typeof(IDictionary <string, ISampleService>)); // Assert Assert.That(result, Is.EqualTo(typeof(ISampleService))); }