public void GetEncoderTest() { Base32HexDecoder decoder = new Base32HexDecoder(); Encoder encoder = decoder.GetEncoder(); Assert.IsNotNull(encoder); Assert.IsInstanceOf(typeof(Base32HexEncoder), encoder); }
public void PaddingTest() { Base32HexDecoder decoder = new Base32HexDecoder(); char testPadding = '?'; decoder.Padding = testPadding; Assert.AreEqual(testPadding, decoder.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' }; Base32HexDecoder decoder = new Base32HexDecoder(); decoder.Alphabet = testAlphabet; Common.AreEqual(testAlphabet, decoder.Alphabet); }
public void InvalidCharacterTest() { Base32HexDecoder decoder = new Base32HexDecoder(); decoder.Decode("ABCDE!"); }
public void IsCaseSensitiveTest() { Base32HexDecoder decoder = new Base32HexDecoder(); Assert.IsFalse(decoder.IsCaseSensitive); }
public void AlphabetShortTest() { Base32HexDecoder decoder = new Base32HexDecoder(); decoder.Alphabet = new char[1]; }
public void AlphabetNullTest() { Base32HexDecoder decoder = new Base32HexDecoder(); decoder.Alphabet = null; }