@@ -84,7 +84,7 @@ public void Match_opt_and_arg()
8484 Assert . AreEqual ( expected , actual ) ;
8585 }
8686
87- const string DOC = @"Usage: prog [-vqr] [FILE]
87+ const string Doc = @"Usage: prog [-vqr] [FILE]
8888 prog INPUT OUTPUT
8989 prog --help
9090
@@ -108,7 +108,7 @@ public void Match_one_opt_with_arg()
108108 { "INPUT" , default } ,
109109 { "OUTPUT" , default }
110110 } ;
111- var actual = new Docopt ( ) . Apply ( DOC , "-v file.py" ) ;
111+ var actual = new Docopt ( ) . Apply ( Doc , "-v file.py" ) ;
112112 Assert . AreEqual ( expected , actual ) ;
113113 }
114114
@@ -125,20 +125,20 @@ public void Match_one_opt_only()
125125 { "INPUT" , default } ,
126126 { "OUTPUT" , default }
127127 } ;
128- var actual = new Docopt ( ) . Apply ( DOC , "-v" ) ;
128+ var actual = new Docopt ( ) . Apply ( Doc , "-v" ) ;
129129 Assert . AreEqual ( expected , actual ) ;
130130 }
131131
132132 [ Test ]
133133 public void No_match ( )
134134 {
135- Assert . Throws < DocoptInputErrorException > ( ( ) => new Docopt ( ) . Apply ( DOC , "-v input.py output.py" ) ) ;
135+ Assert . Throws < DocoptInputErrorException > ( ( ) => new Docopt ( ) . Apply ( Doc , "-v input.py output.py" ) ) ;
136136 }
137137
138138 [ Test ]
139139 public void Non_existent_long ( )
140140 {
141- Assert . Throws < DocoptInputErrorException > ( ( ) => new Docopt ( ) . Apply ( DOC , "--fake" ) ) ;
141+ Assert . Throws < DocoptInputErrorException > ( ( ) => new Docopt ( ) . Apply ( Doc , "--fake" ) ) ;
142142 }
143143
144144 [ Test ]
@@ -152,7 +152,7 @@ public void Should_exit_error_code_1()
152152 message = e . Message ;
153153 errorCode = e . ErrorCode ;
154154 } ;
155- d . Apply ( DOC , "--fake" , exit : true ) ;
155+ d . Apply ( Doc , "--fake" , exit : true ) ;
156156 StringAssert . StartsWith ( "Usage" , message ) ;
157157 Assert . AreEqual ( 1 , errorCode , "Should exit with error code 1 when exit=true and invalid args provided" ) ;
158158 }
@@ -168,7 +168,7 @@ public void Display_help()
168168 message = e . Message ;
169169 errorCode = e . ErrorCode ;
170170 } ;
171- d . Apply ( DOC , "--help" ) ;
171+ d . Apply ( Doc , "--help" ) ;
172172 StringAssert . StartsWith ( "Usage" , message ) ;
173173 Assert . AreEqual ( 0 , errorCode ) ;
174174 }
0 commit comments