public void TestExtendedEncoding() { ExtendedEncoder encoder = new ExtendedEncoder(); Assert.AreEqual("AA", encoder.Convert(0)); Assert.AreEqual("Ba", encoder.Convert(90)); Assert.AreEqual(".z", encoder.Convert(4083)); Assert.AreEqual("..", encoder.Convert(4095)); Assert.AreEqual("__", encoder.Convert(null)); }
public void TestSimpleEncodingInvalid2() { ExtendedEncoder encoder = new ExtendedEncoder(); Assert.AreEqual(encoder.Convert(-1), "9"); }