void initDecoders() { myDecoders[typeof(String)] = new StringDecoder(); myDecoders[typeof(UInt32)] = new NumberDecoder <UInt32>(); myDecoders[typeof(Int32)] = new NumberDecoder <Int32>(); myDecoders[typeof(UInt64)] = new NumberDecoder <UInt64>(); myDecoders[typeof(Int64)] = new NumberDecoder <Int64>(); myDecoders[typeof(float)] = new NumberDecoder <float>(); myDecoders[typeof(double)] = new NumberDecoder <double>(); myDecoders[typeof(bool)] = new BoolDecoder(); myDecoders[typeof(LuaObject)] = new LuaObjectDecoder(); }
public void TestDigit2() { NumberDecoder nd = new NumberDecoder(); Assert.Equal(2, nd.Decode('2')); }
public void TestDigit0() { NumberDecoder nd = new NumberDecoder(); Assert.Equal(0, nd.Decode('0')); }