System.Tests.StringTests.PadLeft C# (CSharp) 메소드

PadLeft() 개인적인 메소드

private PadLeft ( string s, int totalWidth, char paddingChar, string expected ) : void
s string
totalWidth int
paddingChar char
expected string
리턴 void
        public static void PadLeft(string s, int totalWidth, char paddingChar, string expected)
        {
            if (paddingChar == ' ')
            {
                Assert.Equal(expected, s.PadLeft(totalWidth));
            }
            Assert.Equal(expected, s.PadLeft(totalWidth, paddingChar));
        }
StringTests