Exemple #1
0
        public void Read_LeftPadding_RemovesLeftPadding(string test, string expected)
        {
            MinimumLengthBehavior behavior = new MinimumLengthBehavior(5, FieldPadding.Left);

            var result = behavior.Read(test);

            Assert.Equal(expected, result);
        }
Exemple #2
0
        public void Write_LeftPadding_PadsToCorrectLength(string test, string expected)
        {
            MinimumLengthBehavior behavior = new MinimumLengthBehavior(5, FieldPadding.Left);

            var result = behavior.Write(test);

            Assert.Equal(expected, result);
        }