public void ConstructorDefaultTest() { Base32HexEncoder decoder = new Base32HexEncoder(); Common.AreEqual(Base32HexEncoder.StandardAlphabet, decoder.Alphabet); Assert.AreEqual(Base32HexEncoder.StandardPadding, decoder.Padding); }
public void GetDecoderTest() { Base32HexEncoder encoder = new Base32HexEncoder(); Decoder decoder = encoder.GetDecoder(); Assert.IsNotNull(decoder); Assert.IsInstanceOf(typeof(Base32HexDecoder), decoder); }
public void PaddingTest() { Base32HexEncoder encoder = new Base32HexEncoder(); char testPadding = '?'; encoder.Padding = testPadding; Assert.AreEqual(testPadding, encoder.Padding); }
public void AlphabetTest() { char[] testAlphabet = new char[] { 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '1', '2', '3', '4', '5', '6' }; Base32HexEncoder encoder = new Base32HexEncoder(); encoder.Alphabet = testAlphabet; Common.AreEqual(testAlphabet, encoder.Alphabet); }
public void AlphabetShortTest() { Base32HexEncoder encoder = new Base32HexEncoder(); encoder.Alphabet = new char[1]; }
public void AlphabetNullTest() { Base32HexEncoder encoder = new Base32HexEncoder(); encoder.Alphabet = null; }