AddConverter() public method

public AddConverter ( Converter converter ) : void
converter Converter
return void
Beispiel #1
0
        public void UserDefinedConvertersHavePriority()
        {
            var lookup             = new ConverterLookup();
            var alternateConverter = new AlternateStringConverter();

            lookup.AddConverter(alternateConverter);
            Assert.That(lookup.GetConverter(typeof(string)), Is.EqualTo(alternateConverter));
        }
Beispiel #2
0
 public void AddConverter(Converter converter)
 {
     converterLookup.AddConverter(converter);
 }
		public void UserDefinedConvertersHavePriority () {
			var lookup = new ConverterLookup ();
			var alternateConverter = new AlternateStringConverter ();
			lookup.AddConverter (alternateConverter);
			Assert.That (lookup.GetConverter (typeof(string)), Is.EqualTo (alternateConverter));
		}