@@ -151,35 +151,35 @@ public void TestReverse()
151151 [ TestMethod ]
152152 public void TestPad ( )
153153 {
154- var result = Str . Pad ( "hello" , 10 , "worldtest" , Str . PadTypes . Both ) ;
154+ var result = Str . Pad ( 10 , "hello" , "worldtest" , Str . PadTypes . Both ) ;
155155 Assert . AreEqual ( "wohellowor" , result ) ;
156156
157- result = Str . Pad ( "hello" , 10 , "worldtest" ) ;
157+ result = Str . Pad ( 10 , "hello" , "worldtest" ) ;
158158 Assert . AreEqual ( "helloworld" , result ) ;
159159
160- result = Str . Pad ( "hello" , 10 , "worldtest" , Str . PadTypes . Left ) ;
160+ result = Str . Pad ( 10 , "hello" , "worldtest" , Str . PadTypes . Left ) ;
161161 Assert . AreEqual ( "worldhello" , result ) ;
162162
163- result = Str . Pad ( "hello" , 3 , "worldtest" , Str . PadTypes . Left ) ;
163+ result = Str . Pad ( 3 , "hello" , "worldtest" , Str . PadTypes . Left ) ;
164164 Assert . AreEqual ( "hello" , result ) ;
165165
166- result = Str . Pad ( "hello" , 10 , null , Str . PadTypes . Left ) ;
166+ result = Str . Pad ( 10 , "hello" , null , Str . PadTypes . Left ) ;
167167 Assert . AreEqual ( " hello" , result ) ;
168168
169- result = Str . Pad ( "hello" , 10 , string . Empty , Str . PadTypes . Left ) ;
169+ result = Str . Pad ( 10 , "hello" , string . Empty , Str . PadTypes . Left ) ;
170170 Assert . AreEqual ( " hello" , result ) ;
171171 }
172172
173173 [ TestMethod ]
174174 public void TestEmptyStrPad ( )
175175 {
176- var result = Str . Pad ( string . Empty , 10 , "wor" , Str . PadTypes . Left ) ;
176+ var result = Str . Pad ( 10 , string . Empty , "wor" , Str . PadTypes . Left ) ;
177177 Assert . AreEqual ( "worworworw" , result ) ;
178178
179- result = Str . Pad ( string . Empty , 10 , "wor" , Str . PadTypes . Both ) ;
179+ result = Str . Pad ( 10 , string . Empty , "wor" , Str . PadTypes . Both ) ;
180180 Assert . AreEqual ( "worwoworwo" , result ) ;
181181
182- result = Str . Pad ( string . Empty , 10 , "wor" ) ;
182+ result = Str . Pad ( 10 , null , "wor" ) ;
183183 Assert . AreEqual ( "worworworw" , result ) ;
184184 }
185185
0 commit comments