public void GetConverter_WithExistingEntry_ReturnsCorrectEntry()
        {
            var converter = A.Fake <IConverter>();

            _sut.RegisterConverter(typeof(int), converter);

            var result = _sut.GetConverter(typeof(int));

            Assert.That(result, Is.SameAs(converter));
        }
Beispiel #2
0
 public static void RegisterConverters(this IConverterRegistry converterRegistry, params IConvertable[] converters)
 {
     foreach (var converter in converters)
     {
         converterRegistry.RegisterConverter(converter);
     }
 }