Exemple #1
0
        public void GetSafeByteCountForDecoding_ReturnsCorrectValues(Base16 encoder)
        {
            var input = new char[10];

            Assert.AreEqual(5, encoder.GetSafeByteCountForDecoding(input));
        }
Exemple #2
0
        public void GetSafeByteCountForDecoding_InvalidBufferSize_ReturnsZero(Base16 encoder)
        {
            var input = new char[11];

            Assert.AreEqual(0, encoder.GetSafeByteCountForDecoding(input));
        }
Exemple #3
0
        public void GetSafeByteCountForDecoding_ReturnsCorrectValues(Base16 encoder)
        {
            var input = new char[10];

            Assert.That(encoder.GetSafeByteCountForDecoding(input), Is.EqualTo(5));
        }