예제 #1
0
        public void Base64VlqDecoder_InputIncludesNegativeValue_ListContainsNegativeValue()
        {
            // Arrange
            string input = "CACf";

            // Act
            List <int> result = Base64VlqDecoder.Decode(input);

            // Assert
            Assert.Equal(new List <int> {
                1, 0, 1, -15
            }, result);
        }
예제 #2
0
        public void Base64VlqDecoder_SingleEncodedValue_ListWithOnlyOneValue()
        {
            // Arrange
            string input = "6rB";

            // Act
            List <int> result = Base64VlqDecoder.Decode(input);

            // Assert
            Assert.Equal(new List <int> {
                701
            }, result);
        }
예제 #3
0
        public void Base64VlqDecoder_MultipleEncodedValues_ListWithMultipleValues()
        {
            // Arrange
            string input = "AAgBC";

            // Act
            List <int> result = Base64VlqDecoder.Decode(input);

            // Assert
            Assert.Equal(new List <int> {
                0, 0, 16, 1
            }, result);
        }