public void ReturnsTrueWhenBothSourceAndDestinationTypesAreNameValueCollection() { var rc = new ResolutionContext(null, null, null, typeof (NameValueCollection), typeof (NameValueCollection), null, Mapper.Context); var nvcm = new NameValueCollectionMapper(); var result = nvcm.IsMatch(rc); result.ShouldBeTrue(); }
public void ReturnsIsFalseWhenSourceTypeIsNotNameValueCollection() { var rc = new ResolutionContext(null, null, null, typeof (object), typeof (NameValueCollection), null, Mapper.Context); var nvcm = new NameValueCollectionMapper(); var result = nvcm.IsMatch(rc); result.ShouldBeFalse(); }