public void ToUInt16() { var converter = ConverterFactory.Create <byte, ushort>(); Assert.Equal(ManualConverter.ByteToUInt16(0), converter(0)); Assert.Equal(ManualConverter.ByteToUInt16(1), converter(1)); Assert.Equal(ManualConverter.ByteToUInt16(Byte.MinValue), converter(Byte.MinValue)); Assert.Equal(ManualConverter.ByteToUInt16(Byte.MaxValue), converter(Byte.MaxValue)); }