Merge lp:~mandel/wadlsharp/add_command_line into lp:~manishsinha/wadlsharp/trunk
- add_command_line
- Merge into trunk
Proposed by
Manuel de la Peña
Status: | Merged | ||||
---|---|---|---|---|---|
Merge reported by: | Manuel de la Peña | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~mandel/wadlsharp/add_command_line | ||||
Merge into: | lp:~manishsinha/wadlsharp/trunk | ||||
Diff against target: |
11678 lines (+11547/-2) 16 files modified
.bzrignore (+2/-0) LpNet.WadlSharp.UnitTest/LpNet.WadlSharp.UnitTest.csproj (+5/-2) WadlConsole/ArgumentValidation.cs (+78/-0) WadlConsole/MultiException.cs (+187/-0) WadlConsole/Program.cs (+150/-0) WadlConsole/Properties/AssemblyInfo.cs (+36/-0) WadlConsole/Resources.Designer.cs (+138/-0) WadlConsole/Resources.resx (+147/-0) WadlConsole/ValidateArgs.cs (+47/-0) WadlConsole/ValidationException.cs (+86/-0) WadlConsole/ValidationExtensions.cs (+109/-0) WadlConsole/WadlConsole.csproj (+86/-0) WadlSharp.sln (+6/-0) libs/NUnit/fit-license.txt (+342/-0) libs/NUnit/license.txt (+15/-0) libs/NUnit/nunit.framework.xml (+10113/-0) |
||||
To merge this branch: | bzr merge lp:~mandel/wadlsharp/add_command_line | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Manish Sinha (मनीष सिन्हा) | Needs Fixing | ||
Review via email: mp+35802@code.launchpad.net |
Commit message
Description of the change
Provides a command line that will allow users to automate the code generation.
To post a comment you must log in.
Revision history for this message
Manish Sinha (मनीष सिन्हा) (manishsinha) wrote : | # |
review:
Needs Fixing
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file '.bzrignore' |
2 | --- .bzrignore 2010-04-03 10:44:04 +0000 |
3 | +++ .bzrignore 2010-09-17 11:31:05 +0000 |
4 | @@ -3,3 +3,5 @@ |
5 | _ReSharper.WadlSharp/ |
6 | bin |
7 | obj |
8 | +WadlSharp.5.1.ReSharper.user |
9 | +*.csproj.user |
10 | |
11 | === modified file 'LpNet.WadlSharp.UnitTest/LpNet.WadlSharp.UnitTest.csproj' |
12 | --- LpNet.WadlSharp.UnitTest/LpNet.WadlSharp.UnitTest.csproj 2010-04-07 18:58:47 +0000 |
13 | +++ LpNet.WadlSharp.UnitTest/LpNet.WadlSharp.UnitTest.csproj 2010-09-17 11:31:05 +0000 |
14 | @@ -3,7 +3,7 @@ |
15 | <PropertyGroup> |
16 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
17 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
18 | - <ProductVersion>9.0.30729</ProductVersion> |
19 | + <ProductVersion>9.0.21022</ProductVersion> |
20 | <SchemaVersion>2.0</SchemaVersion> |
21 | <ProjectGuid>{032D5E6D-CA4D-41AE-B756-16DC5E7FBE28}</ProjectGuid> |
22 | <OutputType>Library</OutputType> |
23 | @@ -31,7 +31,10 @@ |
24 | <WarningLevel>4</WarningLevel> |
25 | </PropertyGroup> |
26 | <ItemGroup> |
27 | - <Reference Include="nunit.framework, Version=2.5.3.9345, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL" /> |
28 | + <Reference Include="nunit.framework, Version=2.5.5.10112, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL"> |
29 | + <SpecificVersion>False</SpecificVersion> |
30 | + <HintPath>..\libs\NUnit\nunit.framework.dll</HintPath> |
31 | + </Reference> |
32 | <Reference Include="System" /> |
33 | <Reference Include="System.Core"> |
34 | <RequiredTargetFramework>3.5</RequiredTargetFramework> |
35 | |
36 | === added directory 'WadlConsole' |
37 | === added file 'WadlConsole/ArgumentValidation.cs' |
38 | --- WadlConsole/ArgumentValidation.cs 1970-01-01 00:00:00 +0000 |
39 | +++ WadlConsole/ArgumentValidation.cs 2010-09-17 11:31:05 +0000 |
40 | @@ -0,0 +1,78 @@ |
41 | +/* |
42 | + * The MIT License (MIT) |
43 | + * |
44 | + * Copyright 2010 Canonical Ltd. |
45 | + * |
46 | + * Permission is hereby granted, free of charge, to any person |
47 | + * obtaining a copy of this software and associated documentation |
48 | + * files (the "Software"), to deal in the Software without |
49 | + * restriction, including without limitation the rights to use, |
50 | + * copy, modify, merge, publish, distribute, sublicense, and/or sell |
51 | + * copies of the Software, and to permit persons to whom the |
52 | + * Software is furnished to do so, subject to the following |
53 | + * conditions: |
54 | + |
55 | + * The above copyright notice and this permission notice shall be |
56 | + * included in all copies or substantial portions of the Software. |
57 | + * |
58 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
59 | + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
60 | + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
61 | + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
62 | + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
63 | + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
64 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
65 | + * OTHER DEALINGS IN THE SOFTWARE. |
66 | + * |
67 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
68 | + */ |
69 | +using System; |
70 | +using System.Collections.Generic; |
71 | + |
72 | +namespace Wadl |
73 | +{ |
74 | + /// <summary> |
75 | + /// Represents a validation carried on the arguments of a method. |
76 | + /// </summary> |
77 | + public sealed class ArgumentValidation |
78 | + { |
79 | + private readonly List<Exception> _exceptions; |
80 | + |
81 | + /// <summary> |
82 | + ///Creates a new argument validation result. |
83 | + /// </summary> |
84 | + public ArgumentValidation() |
85 | + { |
86 | + _exceptions = new List<Exception>(1); // optimize for only having 1 exception |
87 | + } |
88 | + |
89 | + /// <value> |
90 | + /// Gets the exception of the result. |
91 | + /// </value> |
92 | + public IEnumerable<Exception> Exceptions |
93 | + { |
94 | + get |
95 | + { |
96 | + return _exceptions; |
97 | + } |
98 | + } |
99 | + |
100 | + /// <summary> |
101 | + /// Adds a new exception to the argument result. |
102 | + /// </summary> |
103 | + /// <param name="ex"> |
104 | + /// A <see cref="Exception"/> to be added to the validation result. |
105 | + /// </param> |
106 | + /// <returns> |
107 | + /// A <see cref="ArgumentValidation"/> with the result of the validation. |
108 | + /// </returns> |
109 | + public ArgumentValidation AddException(Exception ex) |
110 | + { |
111 | + lock (_exceptions) |
112 | + { |
113 | + _exceptions.Add(ex); |
114 | + } |
115 | + return this; |
116 | + } |
117 | + } |
118 | +} |
119 | \ No newline at end of file |
120 | |
121 | === added file 'WadlConsole/MultiException.cs' |
122 | --- WadlConsole/MultiException.cs 1970-01-01 00:00:00 +0000 |
123 | +++ WadlConsole/MultiException.cs 2010-09-17 11:31:05 +0000 |
124 | @@ -0,0 +1,187 @@ |
125 | +/* |
126 | + * Copyright 2010 Canonical Ltd. |
127 | + * |
128 | + * This file is part of UbuntuOne on Windows. |
129 | + * |
130 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
131 | + * it under the terms of the GNU Lesser General Public License version |
132 | + * as published by the Free Software Foundation. |
133 | + * |
134 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
135 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
136 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
137 | + * GNU Lesser General Public License for more details. |
138 | + * |
139 | + * You should have received a copy of the GNU Lesser General Public License |
140 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
141 | + * |
142 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
143 | + */ |
144 | +using System; |
145 | +using System.Collections.Generic; |
146 | +using System.Linq; |
147 | +using System.Runtime.Serialization; |
148 | +using System.Security.Permissions; |
149 | +using System.Text; |
150 | + |
151 | +namespace Canonical.UbuntuOne.Common.Validation |
152 | +{ |
153 | + /// <summary> |
154 | + ///Exception used to hold more than one exception to allow several erros in the validations. |
155 | + /// </summary> |
156 | + [Serializable] |
157 | + public sealed class MultiException : Exception |
158 | + { |
159 | + private readonly Exception[] _innerExceptions; |
160 | + |
161 | + /// <value> |
162 | + /// A collections with the inner exceptions. |
163 | + /// </value> |
164 | + public IEnumerable<Exception> InnerExceptions |
165 | + { |
166 | + get |
167 | + { |
168 | + if (_innerExceptions != null) |
169 | + { |
170 | + foreach (var t in _innerExceptions) |
171 | + { |
172 | + yield return t; |
173 | + } |
174 | + } |
175 | + } |
176 | + } |
177 | + |
178 | + /// <summary> |
179 | + ///Creates a new exception. |
180 | + /// </summary> |
181 | + public MultiException() |
182 | + { |
183 | + } |
184 | + |
185 | + /// <summary> |
186 | + /// Creates a new exception with the given messsage. |
187 | + /// </summary> |
188 | + /// <param name="message"> |
189 | + /// A <see cref="System.String"/> with the message of the exception. |
190 | + /// </param> |
191 | + public MultiException(string message) |
192 | + : base(message) |
193 | + { |
194 | + } |
195 | + |
196 | + /// <summary> |
197 | + /// Creates a new exceptionwih the givenmessage and inner exception. |
198 | + /// </summary> |
199 | + /// <param name="message"> |
200 | + /// A <see cref="System.String"/> with the message of the exception. |
201 | + /// </param> |
202 | + /// <param name="innerException"> |
203 | + /// A <see cref="Exception"/> that represents the inner exception. |
204 | + /// </param> |
205 | + public MultiException(string message, Exception innerException) |
206 | + : base(message, innerException) |
207 | + { |
208 | + _innerExceptions = new[] { innerException }; |
209 | + } |
210 | + |
211 | + /// <summary> |
212 | + /// Creates an exception with a collection of inner exceptions. |
213 | + /// </summary> |
214 | + /// <param name="innerExceptions"> |
215 | + /// A enumerable with the inner exceptions. |
216 | + /// </param> |
217 | + public MultiException(IEnumerable<Exception> innerExceptions) |
218 | + : this(null, innerExceptions) |
219 | + { |
220 | + } |
221 | + |
222 | + /// <summary> |
223 | + /// Creates an exception with as collection of inner exceptions. |
224 | + /// </summary> |
225 | + /// <param name="innerExceptions"> |
226 | + /// A <see cref="Exception"/> with the inner exceptions. |
227 | + /// </param> |
228 | + public MultiException(Exception[] innerExceptions) |
229 | + : this(null, (IEnumerable<Exception>)innerExceptions) |
230 | + { |
231 | + } |
232 | + |
233 | + /// <summary> |
234 | + /// Creates a new exception with the given message and inner exceptions. |
235 | + /// </summary> |
236 | + /// <param name="message"> |
237 | + /// A <see cref="System.String"/> with the message of the exception. |
238 | + /// </param> |
239 | + /// <param name="innerExceptions"> |
240 | + /// A <see cref="Exception"/> with the collection of inner exceptions. |
241 | + /// </param> |
242 | + public MultiException(string message, Exception[] innerExceptions) |
243 | + : this(message, (IEnumerable<Exception>)innerExceptions) |
244 | + { |
245 | + } |
246 | + |
247 | + /// <summary> |
248 | + /// Creates a new exception with the given message and exceptions. |
249 | + /// </summary> |
250 | + /// <param name="message"> |
251 | + /// A <see cref="System.String"/> with the message of the exception. |
252 | + /// </param> |
253 | + /// <param name="innerExceptions"> |
254 | + /// An enumerable with the inner exceptions. |
255 | + /// </param> |
256 | + public MultiException(string message, IEnumerable<Exception> innerExceptions) |
257 | + : base(message, innerExceptions.FirstOrDefault()) |
258 | + { |
259 | + foreach (var exception in innerExceptions) |
260 | + if (exception == null) |
261 | + throw new ArgumentNullException("innerExceptions"); |
262 | + |
263 | + _innerExceptions = innerExceptions.ToArray(); |
264 | + } |
265 | + |
266 | + /// <summary> |
267 | + /// Creates a new exception from the serialization info. |
268 | + /// </summary> |
269 | + /// <param name="info"> |
270 | + /// A <see cref="SerializationInfo"/> with the info of the exception. |
271 | + /// </param> |
272 | + /// <param name="context"> |
273 | + /// A <see cref="StreamingContext"/> with the context of the exception. |
274 | + /// </param> |
275 | + private MultiException(SerializationInfo info, StreamingContext context) |
276 | + : base(info, context) |
277 | + { |
278 | + } |
279 | + |
280 | + /// <summary> |
281 | + /// Returns the string representation of the exception. |
282 | + /// </summary> |
283 | + /// <returns> |
284 | + /// A <see cref="System.String"/> that represents the exception. |
285 | + /// </returns> |
286 | + public override string ToString() |
287 | + { |
288 | + var builder = new StringBuilder(_innerExceptions.Length); |
289 | + foreach (var exception in _innerExceptions) |
290 | + builder.AppendLine(exception.ToString()); |
291 | + return builder.ToString(); |
292 | + } |
293 | + |
294 | + /// <summary> |
295 | + /// |
296 | + /// </summary> |
297 | + /// <param name="info"> |
298 | + /// A <see cref="SerializationInfo"/> |
299 | + /// </param> |
300 | + /// <param name="context"> |
301 | + /// A <see cref="StreamingContext"/> |
302 | + /// </param> |
303 | + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] |
304 | + public override void GetObjectData(SerializationInfo info, StreamingContext context) |
305 | + { |
306 | + base.GetObjectData(info, context); |
307 | + |
308 | + info.AddValue("CheckedOut", _innerExceptions); |
309 | + } |
310 | + } |
311 | +} |
312 | \ No newline at end of file |
313 | |
314 | === added file 'WadlConsole/Program.cs' |
315 | --- WadlConsole/Program.cs 1970-01-01 00:00:00 +0000 |
316 | +++ WadlConsole/Program.cs 2010-09-17 11:31:05 +0000 |
317 | @@ -0,0 +1,150 @@ |
318 | +/* |
319 | + * The MIT License (MIT) |
320 | + * |
321 | + * Copyright 2010 Canonical Ltd. |
322 | + * |
323 | + * Permission is hereby granted, free of charge, to any person |
324 | + * obtaining a copy of this software and associated documentation |
325 | + * files (the "Software"), to deal in the Software without |
326 | + * restriction, including without limitation the rights to use, |
327 | + * copy, modify, merge, publish, distribute, sublicense, and/or sell |
328 | + * copies of the Software, and to permit persons to whom the |
329 | + * Software is furnished to do so, subject to the following |
330 | + * conditions: |
331 | + |
332 | + * The above copyright notice and this permission notice shall be |
333 | + * included in all copies or substantial portions of the Software. |
334 | + * |
335 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
336 | + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
337 | + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
338 | + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
339 | + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
340 | + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
341 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
342 | + * OTHER DEALINGS IN THE SOFTWARE. |
343 | + * |
344 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
345 | + */ |
346 | +using System; |
347 | +using System.IO; |
348 | +using System.Net; |
349 | +using LpNet.WadlSharp.Common; |
350 | +using NDesk.Options; |
351 | + |
352 | +namespace Wadl |
353 | +{ |
354 | + /// <summary> |
355 | + /// Command line application that allows to generate code from a wadl file |
356 | + /// or url. |
357 | + /// </summary> |
358 | + class Program |
359 | + { |
360 | + #region Helper methods |
361 | + |
362 | + /// <summary> |
363 | + /// Shows the help of the command line. |
364 | + /// </summary> |
365 | + private static void ShowHelp(OptionSet options) |
366 | + { |
367 | + Console.WriteLine(Resources.Help); |
368 | + Console.WriteLine(); |
369 | + options.WriteOptionDescriptions(Console.Out); |
370 | + } |
371 | + |
372 | + /// <summary> |
373 | + /// Downloads teh wadl definition from the given url and stores it in a temp |
374 | + /// file so that the converter can use it later. |
375 | + /// </summary> |
376 | + /// <param name="url">The url where the wadl definition can be found.</param> |
377 | + /// <returns>The temp file where the definition was stored.</returns> |
378 | + private static string GetWadlFile(string url) |
379 | + { |
380 | + // generate the temp file name to be used. |
381 | + var filename = Path.GetTempFileName(); |
382 | + // we will not do the download async, we are blocked until we have the |
383 | + // definitions |
384 | + var webClient = new WebClient(); |
385 | + webClient.DownloadFile(url, filename); |
386 | + return filename; |
387 | + |
388 | + } |
389 | + |
390 | + /// <summary> |
391 | + /// Generates the code from the parameters of the console. |
392 | + /// </summary> |
393 | + /// <param name="inputFileName">The filename of the WADL file.</param> |
394 | + /// <param name="outputFileName">The filename of the .cs file. If the file does not exist, |
395 | + /// it would be created. If it does exist, it would be truncated and then overwritten.</param> |
396 | + /// <param name="rootNamespace">The name of the namespace which you would like the generated code to have.</param> |
397 | + private static void GenerateCode(string inputFileName, string outputFileName, string rootNamespace) |
398 | + { |
399 | + var converter = new WadlConverter(); |
400 | + converter.Convert(inputFileName, outputFileName, rootNamespace); |
401 | + } |
402 | + |
403 | + #endregion |
404 | + |
405 | + public static void Main(string[] args) |
406 | + { |
407 | + var isFile = true; |
408 | + var outputFile = ""; |
409 | + var rootNamespace = ""; |
410 | + var input = ""; |
411 | + var help = false; |
412 | + |
413 | + // create the option set that will provide the diff options |
414 | + // of the command line |
415 | + var options = new OptionSet |
416 | + { |
417 | + { "i|input=", Resources.InputDescription, v => input = v }, |
418 | + { "u|url", Resources.UrlDescription, v=> isFile = false }, |
419 | + { "o|output=", Resources.OutputDescription, v=> outputFile = v }, |
420 | + { "n|namespace=", Resources.NamespaceDescription, v=> rootNamespace = v }, |
421 | + { "h|?|help", Resources.HelpDescription, v => help = v != null }, |
422 | + }; |
423 | + |
424 | + try |
425 | + { |
426 | + options.Parse(args); |
427 | + } |
428 | + catch (OptionException e) { |
429 | + Console.Write ("wadl-sharp: "); |
430 | + Console.WriteLine (e.Message); |
431 | + Console.WriteLine (Resources.TryHelp); |
432 | + return; |
433 | + } |
434 | + |
435 | + if(help) |
436 | + { |
437 | + ShowHelp(options); |
438 | + return; |
439 | + } |
440 | + |
441 | + if(!isFile) |
442 | + { |
443 | + input = GetWadlFile(input); |
444 | + } |
445 | + |
446 | + try |
447 | + { |
448 | + // validate the args that were passed to the command line |
449 | + ValidateArgs.Begin() |
450 | + .IsNotNullOrEmpty(input, "input") |
451 | + .PathExists(input, "input") |
452 | + .IsNotNullOrEmpty(outputFile, "output") |
453 | + .IsNotNullOrEmpty(rootNamespace, "namespace"); |
454 | + }catch(ValidationException e) |
455 | + { |
456 | + Console.Write("wadl-sharp: "); |
457 | + Console.WriteLine(e.Message); |
458 | + Console.WriteLine(Resources.TryHelp); |
459 | + return; |
460 | + } |
461 | + |
462 | + // eveyhthin is ok, therefore we generate the code |
463 | + GenerateCode(input, outputFile, rootNamespace); |
464 | + Console.WriteLine(Resources.Completed); |
465 | + } |
466 | + } |
467 | +} |
468 | |
469 | === added directory 'WadlConsole/Properties' |
470 | === added file 'WadlConsole/Properties/AssemblyInfo.cs' |
471 | --- WadlConsole/Properties/AssemblyInfo.cs 1970-01-01 00:00:00 +0000 |
472 | +++ WadlConsole/Properties/AssemblyInfo.cs 2010-09-17 11:31:05 +0000 |
473 | @@ -0,0 +1,36 @@ |
474 | +using System.Reflection; |
475 | +using System.Runtime.CompilerServices; |
476 | +using System.Runtime.InteropServices; |
477 | + |
478 | +// General Information about an assembly is controlled through the following |
479 | +// set of attributes. Change these attribute values to modify the information |
480 | +// associated with an assembly. |
481 | +[assembly: AssemblyTitle("WadlConsole")] |
482 | +[assembly: AssemblyDescription("")] |
483 | +[assembly: AssemblyConfiguration("")] |
484 | +[assembly: AssemblyCompany("")] |
485 | +[assembly: AssemblyProduct("WadlConsole")] |
486 | +[assembly: AssemblyCopyright("Copyright © 2010")] |
487 | +[assembly: AssemblyTrademark("")] |
488 | +[assembly: AssemblyCulture("")] |
489 | + |
490 | +// Setting ComVisible to false makes the types in this assembly not visible |
491 | +// to COM components. If you need to access a type in this assembly from |
492 | +// COM, set the ComVisible attribute to true on that type. |
493 | +[assembly: ComVisible(false)] |
494 | + |
495 | +// The following GUID is for the ID of the typelib if this project is exposed to COM |
496 | +[assembly: Guid("34be2173-73fc-4b3a-bf99-677869c82632")] |
497 | + |
498 | +// Version information for an assembly consists of the following four values: |
499 | +// |
500 | +// Major Version |
501 | +// Minor Version |
502 | +// Build Number |
503 | +// Revision |
504 | +// |
505 | +// You can specify all the values or you can default the Build and Revision Numbers |
506 | +// by using the '*' as shown below: |
507 | +// [assembly: AssemblyVersion("1.0.*")] |
508 | +[assembly: AssemblyVersion("1.0.0.0")] |
509 | +[assembly: AssemblyFileVersion("1.0.0.0")] |
510 | |
511 | === added file 'WadlConsole/Resources.Designer.cs' |
512 | --- WadlConsole/Resources.Designer.cs 1970-01-01 00:00:00 +0000 |
513 | +++ WadlConsole/Resources.Designer.cs 2010-09-17 11:31:05 +0000 |
514 | @@ -0,0 +1,138 @@ |
515 | +//------------------------------------------------------------------------------ |
516 | +// <auto-generated> |
517 | +// This code was generated by a tool. |
518 | +// Runtime Version:2.0.50727.4952 |
519 | +// |
520 | +// Changes to this file may cause incorrect behavior and will be lost if |
521 | +// the code is regenerated. |
522 | +// </auto-generated> |
523 | +//------------------------------------------------------------------------------ |
524 | + |
525 | +namespace Wadl { |
526 | + using System; |
527 | + |
528 | + |
529 | + /// <summary> |
530 | + /// A strongly-typed resource class, for looking up localized strings, etc. |
531 | + /// </summary> |
532 | + // This class was auto-generated by the StronglyTypedResourceBuilder |
533 | + // class via a tool like ResGen or Visual Studio. |
534 | + // To add or remove a member, edit your .ResX file then rerun ResGen |
535 | + // with the /str option, or rebuild your VS project. |
536 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] |
537 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
538 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
539 | + internal class Resources { |
540 | + |
541 | + private static global::System.Resources.ResourceManager resourceMan; |
542 | + |
543 | + private static global::System.Globalization.CultureInfo resourceCulture; |
544 | + |
545 | + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] |
546 | + internal Resources() { |
547 | + } |
548 | + |
549 | + /// <summary> |
550 | + /// Returns the cached ResourceManager instance used by this class. |
551 | + /// </summary> |
552 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
553 | + internal static global::System.Resources.ResourceManager ResourceManager { |
554 | + get { |
555 | + if (object.ReferenceEquals(resourceMan, null)) { |
556 | + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Wadl.Resources", typeof(Resources).Assembly); |
557 | + resourceMan = temp; |
558 | + } |
559 | + return resourceMan; |
560 | + } |
561 | + } |
562 | + |
563 | + /// <summary> |
564 | + /// Overrides the current thread's CurrentUICulture property for all |
565 | + /// resource lookups using this strongly typed resource class. |
566 | + /// </summary> |
567 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
568 | + internal static global::System.Globalization.CultureInfo Culture { |
569 | + get { |
570 | + return resourceCulture; |
571 | + } |
572 | + set { |
573 | + resourceCulture = value; |
574 | + } |
575 | + } |
576 | + |
577 | + /// <summary> |
578 | + /// Looks up a localized string similar to Generation completed.. |
579 | + /// </summary> |
580 | + internal static string Completed { |
581 | + get { |
582 | + return ResourceManager.GetString("Completed", resourceCulture); |
583 | + } |
584 | + } |
585 | + |
586 | + /// <summary> |
587 | + /// Looks up a localized string similar to Usage: wadl-sharp [OPTIONS] |
588 | + /// |
589 | + ///Generates the C# code required to communicate with a wadl service. |
590 | + ///Options:. |
591 | + /// </summary> |
592 | + internal static string Help { |
593 | + get { |
594 | + return ResourceManager.GetString("Help", resourceCulture); |
595 | + } |
596 | + } |
597 | + |
598 | + /// <summary> |
599 | + /// Looks up a localized string similar to Show this message.. |
600 | + /// </summary> |
601 | + internal static string HelpDescription { |
602 | + get { |
603 | + return ResourceManager.GetString("HelpDescription", resourceCulture); |
604 | + } |
605 | + } |
606 | + |
607 | + /// <summary> |
608 | + /// Looks up a localized string similar to Filename or url with the definition of the WADL file.. |
609 | + /// </summary> |
610 | + internal static string InputDescription { |
611 | + get { |
612 | + return ResourceManager.GetString("InputDescription", resourceCulture); |
613 | + } |
614 | + } |
615 | + |
616 | + /// <summary> |
617 | + /// Looks up a localized string similar to The name of the namespace which you would like the generated code to have.. |
618 | + /// </summary> |
619 | + internal static string NamespaceDescription { |
620 | + get { |
621 | + return ResourceManager.GetString("NamespaceDescription", resourceCulture); |
622 | + } |
623 | + } |
624 | + |
625 | + /// <summary> |
626 | + /// Looks up a localized string similar to The fiilename of the .cs file to be generated. If the file does not exist, it would be created. If it does exist, it would be truncated and then overwritten.. |
627 | + /// </summary> |
628 | + internal static string OutputDescription { |
629 | + get { |
630 | + return ResourceManager.GetString("OutputDescription", resourceCulture); |
631 | + } |
632 | + } |
633 | + |
634 | + /// <summary> |
635 | + /// Looks up a localized string similar to Try `wadl-sharp --help' for more information.. |
636 | + /// </summary> |
637 | + internal static string TryHelp { |
638 | + get { |
639 | + return ResourceManager.GetString("TryHelp", resourceCulture); |
640 | + } |
641 | + } |
642 | + |
643 | + /// <summary> |
644 | + /// Looks up a localized string similar to A boolean flag stating if a url was provided.. |
645 | + /// </summary> |
646 | + internal static string UrlDescription { |
647 | + get { |
648 | + return ResourceManager.GetString("UrlDescription", resourceCulture); |
649 | + } |
650 | + } |
651 | + } |
652 | +} |
653 | |
654 | === added file 'WadlConsole/Resources.resx' |
655 | --- WadlConsole/Resources.resx 1970-01-01 00:00:00 +0000 |
656 | +++ WadlConsole/Resources.resx 2010-09-17 11:31:05 +0000 |
657 | @@ -0,0 +1,147 @@ |
658 | +<?xml version="1.0" encoding="utf-8"?> |
659 | +<root> |
660 | + <!-- |
661 | + Microsoft ResX Schema |
662 | + |
663 | + Version 2.0 |
664 | + |
665 | + The primary goals of this format is to allow a simple XML format |
666 | + that is mostly human readable. The generation and parsing of the |
667 | + various data types are done through the TypeConverter classes |
668 | + associated with the data types. |
669 | + |
670 | + Example: |
671 | + |
672 | + ... ado.net/XML headers & schema ... |
673 | + <resheader name="resmimetype">text/microsoft-resx</resheader> |
674 | + <resheader name="version">2.0</resheader> |
675 | + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
676 | + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
677 | + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
678 | + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
679 | + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
680 | + <value>[base64 mime encoded serialized .NET Framework object]</value> |
681 | + </data> |
682 | + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
683 | + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
684 | + <comment>This is a comment</comment> |
685 | + </data> |
686 | + |
687 | + There are any number of "resheader" rows that contain simple |
688 | + name/value pairs. |
689 | + |
690 | + Each data row contains a name, and value. The row also contains a |
691 | + type or mimetype. Type corresponds to a .NET class that support |
692 | + text/value conversion through the TypeConverter architecture. |
693 | + Classes that don't support this are serialized and stored with the |
694 | + mimetype set. |
695 | + |
696 | + The mimetype is used for serialized objects, and tells the |
697 | + ResXResourceReader how to depersist the object. This is currently not |
698 | + extensible. For a given mimetype the value must be set accordingly: |
699 | + |
700 | + Note - application/x-microsoft.net.object.binary.base64 is the format |
701 | + that the ResXResourceWriter will generate, however the reader can |
702 | + read any of the formats listed below. |
703 | + |
704 | + mimetype: application/x-microsoft.net.object.binary.base64 |
705 | + value : The object must be serialized with |
706 | + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
707 | + : and then encoded with base64 encoding. |
708 | + |
709 | + mimetype: application/x-microsoft.net.object.soap.base64 |
710 | + value : The object must be serialized with |
711 | + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
712 | + : and then encoded with base64 encoding. |
713 | + |
714 | + mimetype: application/x-microsoft.net.object.bytearray.base64 |
715 | + value : The object must be serialized into a byte array |
716 | + : using a System.ComponentModel.TypeConverter |
717 | + : and then encoded with base64 encoding. |
718 | + --> |
719 | + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
720 | + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
721 | + <xsd:element name="root" msdata:IsDataSet="true"> |
722 | + <xsd:complexType> |
723 | + <xsd:choice maxOccurs="unbounded"> |
724 | + <xsd:element name="metadata"> |
725 | + <xsd:complexType> |
726 | + <xsd:sequence> |
727 | + <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
728 | + </xsd:sequence> |
729 | + <xsd:attribute name="name" use="required" type="xsd:string" /> |
730 | + <xsd:attribute name="type" type="xsd:string" /> |
731 | + <xsd:attribute name="mimetype" type="xsd:string" /> |
732 | + <xsd:attribute ref="xml:space" /> |
733 | + </xsd:complexType> |
734 | + </xsd:element> |
735 | + <xsd:element name="assembly"> |
736 | + <xsd:complexType> |
737 | + <xsd:attribute name="alias" type="xsd:string" /> |
738 | + <xsd:attribute name="name" type="xsd:string" /> |
739 | + </xsd:complexType> |
740 | + </xsd:element> |
741 | + <xsd:element name="data"> |
742 | + <xsd:complexType> |
743 | + <xsd:sequence> |
744 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
745 | + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
746 | + </xsd:sequence> |
747 | + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
748 | + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
749 | + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
750 | + <xsd:attribute ref="xml:space" /> |
751 | + </xsd:complexType> |
752 | + </xsd:element> |
753 | + <xsd:element name="resheader"> |
754 | + <xsd:complexType> |
755 | + <xsd:sequence> |
756 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
757 | + </xsd:sequence> |
758 | + <xsd:attribute name="name" type="xsd:string" use="required" /> |
759 | + </xsd:complexType> |
760 | + </xsd:element> |
761 | + </xsd:choice> |
762 | + </xsd:complexType> |
763 | + </xsd:element> |
764 | + </xsd:schema> |
765 | + <resheader name="resmimetype"> |
766 | + <value>text/microsoft-resx</value> |
767 | + </resheader> |
768 | + <resheader name="version"> |
769 | + <value>2.0</value> |
770 | + </resheader> |
771 | + <resheader name="reader"> |
772 | + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
773 | + </resheader> |
774 | + <resheader name="writer"> |
775 | + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
776 | + </resheader> |
777 | + <data name="Completed" xml:space="preserve"> |
778 | + <value>Generation completed.</value> |
779 | + </data> |
780 | + <data name="Help" xml:space="preserve"> |
781 | + <value>Usage: wadl-sharp [OPTIONS] |
782 | + |
783 | +Generates the C# code required to communicate with a wadl service. |
784 | +Options:</value> |
785 | + </data> |
786 | + <data name="HelpDescription" xml:space="preserve"> |
787 | + <value>Show this message.</value> |
788 | + </data> |
789 | + <data name="InputDescription" xml:space="preserve"> |
790 | + <value>Filename or url with the definition of the WADL file.</value> |
791 | + </data> |
792 | + <data name="NamespaceDescription" xml:space="preserve"> |
793 | + <value>The name of the namespace which you would like the generated code to have.</value> |
794 | + </data> |
795 | + <data name="OutputDescription" xml:space="preserve"> |
796 | + <value>The fiilename of the .cs file to be generated. If the file does not exist, it would be created. If it does exist, it would be truncated and then overwritten.</value> |
797 | + </data> |
798 | + <data name="TryHelp" xml:space="preserve"> |
799 | + <value>Try `wadl-sharp --help' for more information.</value> |
800 | + </data> |
801 | + <data name="UrlDescription" xml:space="preserve"> |
802 | + <value>A boolean flag stating if a url was provided.</value> |
803 | + </data> |
804 | +</root> |
805 | \ No newline at end of file |
806 | |
807 | === added file 'WadlConsole/ValidateArgs.cs' |
808 | --- WadlConsole/ValidateArgs.cs 1970-01-01 00:00:00 +0000 |
809 | +++ WadlConsole/ValidateArgs.cs 2010-09-17 11:31:05 +0000 |
810 | @@ -0,0 +1,47 @@ |
811 | +/* |
812 | + * The MIT License (MIT) |
813 | + * |
814 | + * Copyright 2010 Canonical Ltd. |
815 | + * |
816 | + * Permission is hereby granted, free of charge, to any person |
817 | + * obtaining a copy of this software and associated documentation |
818 | + * files (the "Software"), to deal in the Software without |
819 | + * restriction, including without limitation the rights to use, |
820 | + * copy, modify, merge, publish, distribute, sublicense, and/or sell |
821 | + * copies of the Software, and to permit persons to whom the |
822 | + * Software is furnished to do so, subject to the following |
823 | + * conditions: |
824 | + |
825 | + * The above copyright notice and this permission notice shall be |
826 | + * included in all copies or substantial portions of the Software. |
827 | + * |
828 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
829 | + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
830 | + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
831 | + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
832 | + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
833 | + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
834 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
835 | + * OTHER DEALINGS IN THE SOFTWARE. |
836 | + * |
837 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
838 | + */ |
839 | +namespace Wadl |
840 | +{ |
841 | + /// <summary> |
842 | + /// http://blog.getpaint.net/2008/12/06/a-fluent-approach-to-c-parameter-validation/ |
843 | + /// </summary> |
844 | + public static class ValidateArgs |
845 | + { |
846 | + /// <summary> |
847 | + /// Allows to start the validation of the arguments. |
848 | + /// </summary> |
849 | + /// <returns> |
850 | + /// A <see cref="ArgumentValidation"/> that will carry the validation. |
851 | + /// </returns> |
852 | + public static ArgumentValidation Begin() |
853 | + { |
854 | + return null; |
855 | + } |
856 | + } |
857 | +} |
858 | |
859 | === added file 'WadlConsole/ValidationException.cs' |
860 | --- WadlConsole/ValidationException.cs 1970-01-01 00:00:00 +0000 |
861 | +++ WadlConsole/ValidationException.cs 2010-09-17 11:31:05 +0000 |
862 | @@ -0,0 +1,86 @@ |
863 | +/* |
864 | + * The MIT License (MIT) |
865 | + * |
866 | + * Copyright 2010 Canonical Ltd. |
867 | + * |
868 | + * Permission is hereby granted, free of charge, to any person |
869 | + * obtaining a copy of this software and associated documentation |
870 | + * files (the "Software"), to deal in the Software without |
871 | + * restriction, including without limitation the rights to use, |
872 | + * copy, modify, merge, publish, distribute, sublicense, and/or sell |
873 | + * copies of the Software, and to permit persons to whom the |
874 | + * Software is furnished to do so, subject to the following |
875 | + * conditions: |
876 | + |
877 | + * The above copyright notice and this permission notice shall be |
878 | + * included in all copies or substantial portions of the Software. |
879 | + * |
880 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
881 | + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
882 | + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
883 | + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
884 | + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
885 | + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
886 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
887 | + * OTHER DEALINGS IN THE SOFTWARE. |
888 | + * |
889 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
890 | + */ |
891 | +using System; |
892 | +using System.Runtime.Serialization; |
893 | + |
894 | +namespace Wadl |
895 | +{ |
896 | + /// <summary> |
897 | + ///Represents the basic exception used in the validation. |
898 | + /// </summary> |
899 | + [Serializable] |
900 | + public class ValidationException : Exception |
901 | + { |
902 | + /// <summary> |
903 | + /// Creates a new exception. |
904 | + /// </summary> |
905 | + public ValidationException() |
906 | + { |
907 | + } |
908 | + |
909 | + /// <summary> |
910 | + /// Creates a new exception with the given message. |
911 | + /// </summary> |
912 | + /// <param name="message"> |
913 | + /// A <see cref="System.String"/> with the message of the exception. |
914 | + /// </param> |
915 | + public ValidationException(string message) |
916 | + : base(message) |
917 | + { |
918 | + } |
919 | + |
920 | + /// <summary> |
921 | + /// Creates a new exception with the given message and inner exception. |
922 | + /// </summary> |
923 | + /// <param name="message"> |
924 | + /// A <see cref="System.String"/> with the message of the exception. |
925 | + /// </param> |
926 | + /// <param name="innerException"> |
927 | + /// A <see cref="Exception"/> that represents the inner exception. |
928 | + /// </param> |
929 | + public ValidationException(string message, Exception innerException) |
930 | + : base(message, innerException) |
931 | + { |
932 | + } |
933 | + |
934 | + /// <summary> |
935 | + /// Creates a new exception from the serialization info. |
936 | + /// </summary> |
937 | + /// <param name="info"> |
938 | + /// A <see cref="SerializationInfo"/> with the serialization info. |
939 | + /// </param> |
940 | + /// <param name="context"> |
941 | + /// A <see cref="StreamingContext"/> with the serialization context. |
942 | + /// </param> |
943 | + protected ValidationException(SerializationInfo info, StreamingContext context) |
944 | + : base(info, context) |
945 | + { |
946 | + } |
947 | + } |
948 | +} |
949 | \ No newline at end of file |
950 | |
951 | === added file 'WadlConsole/ValidationExtensions.cs' |
952 | --- WadlConsole/ValidationExtensions.cs 1970-01-01 00:00:00 +0000 |
953 | +++ WadlConsole/ValidationExtensions.cs 2010-09-17 11:31:05 +0000 |
954 | @@ -0,0 +1,109 @@ |
955 | +/* |
956 | + * The MIT License (MIT) |
957 | + * |
958 | + * Copyright 2010 Canonical Ltd. |
959 | + * |
960 | + * Permission is hereby granted, free of charge, to any person |
961 | + * obtaining a copy of this software and associated documentation |
962 | + * files (the "Software"), to deal in the Software without |
963 | + * restriction, including without limitation the rights to use, |
964 | + * copy, modify, merge, publish, distribute, sublicense, and/or sell |
965 | + * copies of the Software, and to permit persons to whom the |
966 | + * Software is furnished to do so, subject to the following |
967 | + * conditions: |
968 | + |
969 | + * The above copyright notice and this permission notice shall be |
970 | + * included in all copies or substantial portions of the Software. |
971 | + * |
972 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
973 | + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
974 | + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
975 | + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
976 | + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
977 | + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
978 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
979 | + * OTHER DEALINGS IN THE SOFTWARE. |
980 | + * |
981 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
982 | + */ |
983 | +using System; |
984 | +using System.IO; |
985 | +using System.Linq; |
986 | +using Canonical.UbuntuOne.Common.Validation; |
987 | + |
988 | +namespace Wadl |
989 | +{ |
990 | + /// <summary> |
991 | + /// Static class that contains a collection of extension method that can be used to |
992 | + /// validate the arguments of a method. |
993 | + /// </summary> |
994 | + public static class ValidationExtensions |
995 | + { |
996 | + /// <summary> |
997 | + /// Ensures that the string that was passed as an argument is not null or empty |
998 | + /// </summary> |
999 | + /// <param name="argumentValidation"> |
1000 | + /// A <see cref="ArgumentValidation"/> with the current result of the validations. |
1001 | + /// </param> |
1002 | + /// <param name="value"> |
1003 | + /// A <see cref="System.String"/> with the argument to validate. |
1004 | + /// </param> |
1005 | + /// <param name="parameterName"> |
1006 | + /// The name of the parameter under test. |
1007 | + /// </param> |
1008 | + /// <returns> |
1009 | + /// A <see cref="ArgumentValidation"/> the result of the validation. |
1010 | + /// </returns> |
1011 | + public static ArgumentValidation IsNotNullOrEmpty(this ArgumentValidation argumentValidation, string value, |
1012 | + string parameterName) |
1013 | + { |
1014 | + return (!String.IsNullOrEmpty(value)) |
1015 | + ? argumentValidation : |
1016 | + (argumentValidation ?? new ArgumentValidation()).AddException(new ArgumentException( |
1017 | + string.Format("'{0}' cannot be null or empty.", parameterName))); |
1018 | + } |
1019 | + |
1020 | + /// <summary> |
1021 | + /// Ensures that the string that was passed as a path does exist in the file system. |
1022 | + /// </summary> |
1023 | + /// <param name="argumentValidation"> |
1024 | + /// A <see cref="ArgumentValidation"/> with the current result of the validations. |
1025 | + /// </param> |
1026 | + /// <param name="path"> |
1027 | + /// The pqath of the file to be found. |
1028 | + /// </param> |
1029 | + /// <param name="parameterName">The name of the parameter.</param> |
1030 | + /// <returns>A <see cref="ArgumentValidation"/> the result of the validation.</returns> |
1031 | + public static ArgumentValidation PathExists(this ArgumentValidation argumentValidation, string path, |
1032 | + string parameterName) |
1033 | + { |
1034 | + return (!File.Exists(path)) |
1035 | + ? argumentValidation : |
1036 | + (argumentValidation ?? new ArgumentValidation()).AddException(new ArgumentException( |
1037 | + string.Format("'{0}' could not be found.", parameterName))); |
1038 | + } |
1039 | + |
1040 | + /// <summary> |
1041 | + /// Performs the check to validate the results. |
1042 | + /// </summary> |
1043 | + /// <param name="argumentValidation"> |
1044 | + /// A <see cref="ArgumentValidation"/> with the result of the validation. |
1045 | + /// </param> |
1046 | + /// <returns> |
1047 | + /// A <see cref="ArgumentValidation"/> with the result of the validation. |
1048 | + /// </returns> |
1049 | + public static ArgumentValidation Check(this ArgumentValidation argumentValidation) |
1050 | + { |
1051 | + if (argumentValidation == null) |
1052 | + return argumentValidation; |
1053 | + |
1054 | + if (argumentValidation.Exceptions.Take(2).Count() == 1) |
1055 | + throw new ValidationException("There is one or more failed validations.", |
1056 | + argumentValidation.Exceptions.First()); |
1057 | + |
1058 | + throw new ValidationException("There is one or more failed validations.", |
1059 | + new MultiException(argumentValidation.Exceptions)); |
1060 | + } |
1061 | + |
1062 | + } |
1063 | +} |
1064 | \ No newline at end of file |
1065 | |
1066 | === added file 'WadlConsole/WadlConsole.csproj' |
1067 | --- WadlConsole/WadlConsole.csproj 1970-01-01 00:00:00 +0000 |
1068 | +++ WadlConsole/WadlConsole.csproj 2010-09-17 11:31:05 +0000 |
1069 | @@ -0,0 +1,86 @@ |
1070 | +<?xml version="1.0" encoding="utf-8"?> |
1071 | +<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
1072 | + <PropertyGroup> |
1073 | + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
1074 | + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
1075 | + <ProductVersion>9.0.21022</ProductVersion> |
1076 | + <SchemaVersion>2.0</SchemaVersion> |
1077 | + <ProjectGuid>{96D617CF-AEF8-405F-BF28-A6807A540DDF}</ProjectGuid> |
1078 | + <OutputType>Exe</OutputType> |
1079 | + <AppDesignerFolder>Properties</AppDesignerFolder> |
1080 | + <RootNamespace>Wadl</RootNamespace> |
1081 | + <AssemblyName>wadl-sharp</AssemblyName> |
1082 | + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
1083 | + <FileAlignment>512</FileAlignment> |
1084 | + </PropertyGroup> |
1085 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
1086 | + <DebugSymbols>true</DebugSymbols> |
1087 | + <DebugType>full</DebugType> |
1088 | + <Optimize>false</Optimize> |
1089 | + <OutputPath>bin\Debug\</OutputPath> |
1090 | + <DefineConstants>DEBUG;TRACE</DefineConstants> |
1091 | + <ErrorReport>prompt</ErrorReport> |
1092 | + <WarningLevel>4</WarningLevel> |
1093 | + </PropertyGroup> |
1094 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
1095 | + <DebugType>pdbonly</DebugType> |
1096 | + <Optimize>true</Optimize> |
1097 | + <OutputPath>bin\Release\</OutputPath> |
1098 | + <DefineConstants>TRACE</DefineConstants> |
1099 | + <ErrorReport>prompt</ErrorReport> |
1100 | + <WarningLevel>4</WarningLevel> |
1101 | + </PropertyGroup> |
1102 | + <ItemGroup> |
1103 | + <Reference Include="NDesk.Options, Version=0.2.1.0, Culture=neutral, processorArchitecture=MSIL"> |
1104 | + <SpecificVersion>False</SpecificVersion> |
1105 | + <HintPath>..\libs\NDesk.Options\NDesk.Options.dll</HintPath> |
1106 | + </Reference> |
1107 | + <Reference Include="System" /> |
1108 | + <Reference Include="System.Core"> |
1109 | + <RequiredTargetFramework>3.5</RequiredTargetFramework> |
1110 | + </Reference> |
1111 | + <Reference Include="System.Xml.Linq"> |
1112 | + <RequiredTargetFramework>3.5</RequiredTargetFramework> |
1113 | + </Reference> |
1114 | + <Reference Include="System.Data.DataSetExtensions"> |
1115 | + <RequiredTargetFramework>3.5</RequiredTargetFramework> |
1116 | + </Reference> |
1117 | + <Reference Include="System.Data" /> |
1118 | + <Reference Include="System.Xml" /> |
1119 | + </ItemGroup> |
1120 | + <ItemGroup> |
1121 | + <Compile Include="ArgumentValidation.cs" /> |
1122 | + <Compile Include="MultiException.cs" /> |
1123 | + <Compile Include="Program.cs" /> |
1124 | + <Compile Include="Properties\AssemblyInfo.cs" /> |
1125 | + <Compile Include="Resources.Designer.cs"> |
1126 | + <AutoGen>True</AutoGen> |
1127 | + <DesignTime>True</DesignTime> |
1128 | + <DependentUpon>Resources.resx</DependentUpon> |
1129 | + </Compile> |
1130 | + <Compile Include="ValidateArgs.cs" /> |
1131 | + <Compile Include="ValidationException.cs" /> |
1132 | + <Compile Include="ValidationExtensions.cs" /> |
1133 | + </ItemGroup> |
1134 | + <ItemGroup> |
1135 | + <ProjectReference Include="..\LpNet.WadlSharp.Common\LpNet.WadlSharp.Common.csproj"> |
1136 | + <Project>{69BA4ABC-93E1-416E-A1EF-0F5DF64B4B71}</Project> |
1137 | + <Name>LpNet.WadlSharp.Common</Name> |
1138 | + </ProjectReference> |
1139 | + </ItemGroup> |
1140 | + <ItemGroup> |
1141 | + <EmbeddedResource Include="Resources.resx"> |
1142 | + <Generator>ResXFileCodeGenerator</Generator> |
1143 | + <LastGenOutput>Resources.Designer.cs</LastGenOutput> |
1144 | + <SubType>Designer</SubType> |
1145 | + </EmbeddedResource> |
1146 | + </ItemGroup> |
1147 | + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
1148 | + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
1149 | + Other similar extension points exist, see Microsoft.Common.targets. |
1150 | + <Target Name="BeforeBuild"> |
1151 | + </Target> |
1152 | + <Target Name="AfterBuild"> |
1153 | + </Target> |
1154 | + --> |
1155 | +</Project> |
1156 | \ No newline at end of file |
1157 | |
1158 | === modified file 'WadlSharp.sln' |
1159 | --- WadlSharp.sln 2010-04-14 15:31:21 +0000 |
1160 | +++ WadlSharp.sln 2010-09-17 11:31:05 +0000 |
1161 | @@ -5,6 +5,8 @@ |
1162 | EndProject |
1163 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LpNet.WadlSharp.UnitTest", "LpNet.WadlSharp.UnitTest\LpNet.WadlSharp.UnitTest.csproj", "{032D5E6D-CA4D-41AE-B756-16DC5E7FBE28}" |
1164 | EndProject |
1165 | +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WadlConsole", "WadlConsole\WadlConsole.csproj", "{96D617CF-AEF8-405F-BF28-A6807A540DDF}" |
1166 | +EndProject |
1167 | Global |
1168 | GlobalSection(SolutionConfigurationPlatforms) = preSolution |
1169 | Debug|Any CPU = Debug|Any CPU |
1170 | @@ -19,6 +21,10 @@ |
1171 | {032D5E6D-CA4D-41AE-B756-16DC5E7FBE28}.Debug|Any CPU.Build.0 = Debug|Any CPU |
1172 | {032D5E6D-CA4D-41AE-B756-16DC5E7FBE28}.Release|Any CPU.ActiveCfg = Release|Any CPU |
1173 | {032D5E6D-CA4D-41AE-B756-16DC5E7FBE28}.Release|Any CPU.Build.0 = Release|Any CPU |
1174 | + {96D617CF-AEF8-405F-BF28-A6807A540DDF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
1175 | + {96D617CF-AEF8-405F-BF28-A6807A540DDF}.Debug|Any CPU.Build.0 = Debug|Any CPU |
1176 | + {96D617CF-AEF8-405F-BF28-A6807A540DDF}.Release|Any CPU.ActiveCfg = Release|Any CPU |
1177 | + {96D617CF-AEF8-405F-BF28-A6807A540DDF}.Release|Any CPU.Build.0 = Release|Any CPU |
1178 | EndGlobalSection |
1179 | GlobalSection(SolutionProperties) = preSolution |
1180 | HideSolutionNode = FALSE |
1181 | |
1182 | === added directory 'libs' |
1183 | === added directory 'libs/NDesk.Options' |
1184 | === added file 'libs/NDesk.Options/NDesk.Options.dll' |
1185 | Binary files libs/NDesk.Options/NDesk.Options.dll 1970-01-01 00:00:00 +0000 and libs/NDesk.Options/NDesk.Options.dll 2010-09-17 11:31:05 +0000 differ |
1186 | === added directory 'libs/NUnit' |
1187 | === added file 'libs/NUnit/fit-license.txt' |
1188 | --- libs/NUnit/fit-license.txt 1970-01-01 00:00:00 +0000 |
1189 | +++ libs/NUnit/fit-license.txt 2010-09-17 11:31:05 +0000 |
1190 | @@ -0,0 +1,342 @@ |
1191 | + |
1192 | + |
1193 | + GNU GENERAL PUBLIC LICENSE |
1194 | + Version 2, June 1991 |
1195 | + |
1196 | + Copyright (C) 1989, 1991 Free Software Foundation, Inc. |
1197 | + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
1198 | + Everyone is permitted to copy and distribute verbatim copies |
1199 | + of this license document, but changing it is not allowed. |
1200 | + |
1201 | + Preamble |
1202 | + |
1203 | + The licenses for most software are designed to take away your |
1204 | +freedom to share and change it. By contrast, the GNU General Public |
1205 | +License is intended to guarantee your freedom to share and change free |
1206 | +software--to make sure the software is free for all its users. This |
1207 | +General Public License applies to most of the Free Software |
1208 | +Foundation's software and to any other program whose authors commit to |
1209 | +using it. (Some other Free Software Foundation software is covered by |
1210 | +the GNU Library General Public License instead.) You can apply it to |
1211 | +your programs, too. |
1212 | + |
1213 | + When we speak of free software, we are referring to freedom, not |
1214 | +price. Our General Public Licenses are designed to make sure that you |
1215 | +have the freedom to distribute copies of free software (and charge for |
1216 | +this service if you wish), that you receive source code or can get it |
1217 | +if you want it, that you can change the software or use pieces of it |
1218 | +in new free programs; and that you know you can do these things. |
1219 | + |
1220 | + To protect your rights, we need to make restrictions that forbid |
1221 | +anyone to deny you these rights or to ask you to surrender the rights. |
1222 | +These restrictions translate to certain responsibilities for you if you |
1223 | +distribute copies of the software, or if you modify it. |
1224 | + |
1225 | + For example, if you distribute copies of such a program, whether |
1226 | +gratis or for a fee, you must give the recipients all the rights that |
1227 | +you have. You must make sure that they, too, receive or can get the |
1228 | +source code. And you must show them these terms so they know their |
1229 | +rights. |
1230 | + |
1231 | + We protect your rights with two steps: (1) copyright the software, and |
1232 | +(2) offer you this license which gives you legal permission to copy, |
1233 | +distribute and/or modify the software. |
1234 | + |
1235 | + Also, for each author's protection and ours, we want to make certain |
1236 | +that everyone understands that there is no warranty for this free |
1237 | +software. If the software is modified by someone else and passed on, we |
1238 | +want its recipients to know that what they have is not the original, so |
1239 | +that any problems introduced by others will not reflect on the original |
1240 | +authors' reputations. |
1241 | + |
1242 | + Finally, any free program is threatened constantly by software |
1243 | +patents. We wish to avoid the danger that redistributors of a free |
1244 | +program will individually obtain patent licenses, in effect making the |
1245 | +program proprietary. To prevent this, we have made it clear that any |
1246 | +patent must be licensed for everyone's free use or not licensed at all. |
1247 | + |
1248 | + The precise terms and conditions for copying, distribution and |
1249 | +modification follow. |
1250 | + |
1251 | + GNU GENERAL PUBLIC LICENSE |
1252 | + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
1253 | + |
1254 | + 0. This License applies to any program or other work which contains |
1255 | +a notice placed by the copyright holder saying it may be distributed |
1256 | +under the terms of this General Public License. The "Program", below, |
1257 | +refers to any such program or work, and a "work based on the Program" |
1258 | +means either the Program or any derivative work under copyright law: |
1259 | +that is to say, a work containing the Program or a portion of it, |
1260 | +either verbatim or with modifications and/or translated into another |
1261 | +language. (Hereinafter, translation is included without limitation in |
1262 | +the term "modification".) Each licensee is addressed as "you". |
1263 | + |
1264 | +Activities other than copying, distribution and modification are not |
1265 | +covered by this License; they are outside its scope. The act of |
1266 | +running the Program is not restricted, and the output from the Program |
1267 | +is covered only if its contents constitute a work based on the |
1268 | +Program (independent of having been made by running the Program). |
1269 | +Whether that is true depends on what the Program does. |
1270 | + |
1271 | + 1. You may copy and distribute verbatim copies of the Program's |
1272 | +source code as you receive it, in any medium, provided that you |
1273 | +conspicuously and appropriately publish on each copy an appropriate |
1274 | +copyright notice and disclaimer of warranty; keep intact all the |
1275 | +notices that refer to this License and to the absence of any warranty; |
1276 | +and give any other recipients of the Program a copy of this License |
1277 | +along with the Program. |
1278 | + |
1279 | +You may charge a fee for the physical act of transferring a copy, and |
1280 | +you may at your option offer warranty protection in exchange for a fee. |
1281 | + |
1282 | + 2. You may modify your copy or copies of the Program or any portion |
1283 | +of it, thus forming a work based on the Program, and copy and |
1284 | +distribute such modifications or work under the terms of Section 1 |
1285 | +above, provided that you also meet all of these conditions: |
1286 | + |
1287 | + a) You must cause the modified files to carry prominent notices |
1288 | + stating that you changed the files and the date of any change. |
1289 | + |
1290 | + b) You must cause any work that you distribute or publish, that in |
1291 | + whole or in part contains or is derived from the Program or any |
1292 | + part thereof, to be licensed as a whole at no charge to all third |
1293 | + parties under the terms of this License. |
1294 | + |
1295 | + c) If the modified program normally reads commands interactively |
1296 | + when run, you must cause it, when started running for such |
1297 | + interactive use in the most ordinary way, to print or display an |
1298 | + announcement including an appropriate copyright notice and a |
1299 | + notice that there is no warranty (or else, saying that you provide |
1300 | + a warranty) and that users may redistribute the program under |
1301 | + these conditions, and telling the user how to view a copy of this |
1302 | + License. (Exception: if the Program itself is interactive but |
1303 | + does not normally print such an announcement, your work based on |
1304 | + the Program is not required to print an announcement.) |
1305 | + |
1306 | +These requirements apply to the modified work as a whole. If |
1307 | +identifiable sections of that work are not derived from the Program, |
1308 | +and can be reasonably considered independent and separate works in |
1309 | +themselves, then this License, and its terms, do not apply to those |
1310 | +sections when you distribute them as separate works. But when you |
1311 | +distribute the same sections as part of a whole which is a work based |
1312 | +on the Program, the distribution of the whole must be on the terms of |
1313 | +this License, whose permissions for other licensees extend to the |
1314 | +entire whole, and thus to each and every part regardless of who wrote it. |
1315 | + |
1316 | +Thus, it is not the intent of this section to claim rights or contest |
1317 | +your rights to work written entirely by you; rather, the intent is to |
1318 | +exercise the right to control the distribution of derivative or |
1319 | +collective works based on the Program. |
1320 | + |
1321 | +In addition, mere aggregation of another work not based on the Program |
1322 | +with the Program (or with a work based on the Program) on a volume of |
1323 | +a storage or distribution medium does not bring the other work under |
1324 | +the scope of this License. |
1325 | + |
1326 | + 3. You may copy and distribute the Program (or a work based on it, |
1327 | +under Section 2) in object code or executable form under the terms of |
1328 | +Sections 1 and 2 above provided that you also do one of the following: |
1329 | + |
1330 | + a) Accompany it with the complete corresponding machine-readable |
1331 | + source code, which must be distributed under the terms of Sections |
1332 | + 1 and 2 above on a medium customarily used for software interchange; or, |
1333 | + |
1334 | + b) Accompany it with a written offer, valid for at least three |
1335 | + years, to give any third party, for a charge no more than your |
1336 | + cost of physically performing source distribution, a complete |
1337 | + machine-readable copy of the corresponding source code, to be |
1338 | + distributed under the terms of Sections 1 and 2 above on a medium |
1339 | + customarily used for software interchange; or, |
1340 | + |
1341 | + c) Accompany it with the information you received as to the offer |
1342 | + to distribute corresponding source code. (This alternative is |
1343 | + allowed only for noncommercial distribution and only if you |
1344 | + received the program in object code or executable form with such |
1345 | + an offer, in accord with Subsection b above.) |
1346 | + |
1347 | +The source code for a work means the preferred form of the work for |
1348 | +making modifications to it. For an executable work, complete source |
1349 | +code means all the source code for all modules it contains, plus any |
1350 | +associated interface definition files, plus the scripts used to |
1351 | +control compilation and installation of the executable. However, as a |
1352 | +special exception, the source code distributed need not include |
1353 | +anything that is normally distributed (in either source or binary |
1354 | +form) with the major components (compiler, kernel, and so on) of the |
1355 | +operating system on which the executable runs, unless that component |
1356 | +itself accompanies the executable. |
1357 | + |
1358 | +If distribution of executable or object code is made by offering |
1359 | +access to copy from a designated place, then offering equivalent |
1360 | +access to copy the source code from the same place counts as |
1361 | +distribution of the source code, even though third parties are not |
1362 | +compelled to copy the source along with the object code. |
1363 | + |
1364 | + 4. You may not copy, modify, sublicense, or distribute the Program |
1365 | +except as expressly provided under this License. Any attempt |
1366 | +otherwise to copy, modify, sublicense or distribute the Program is |
1367 | +void, and will automatically terminate your rights under this License. |
1368 | +However, parties who have received copies, or rights, from you under |
1369 | +this License will not have their licenses terminated so long as such |
1370 | +parties remain in full compliance. |
1371 | + |
1372 | + 5. You are not required to accept this License, since you have not |
1373 | +signed it. However, nothing else grants you permission to modify or |
1374 | +distribute the Program or its derivative works. These actions are |
1375 | +prohibited by law if you do not accept this License. Therefore, by |
1376 | +modifying or distributing the Program (or any work based on the |
1377 | +Program), you indicate your acceptance of this License to do so, and |
1378 | +all its terms and conditions for copying, distributing or modifying |
1379 | +the Program or works based on it. |
1380 | + |
1381 | + 6. Each time you redistribute the Program (or any work based on the |
1382 | +Program), the recipient automatically receives a license from the |
1383 | +original licensor to copy, distribute or modify the Program subject to |
1384 | +these terms and conditions. You may not impose any further |
1385 | +restrictions on the recipients' exercise of the rights granted herein. |
1386 | +You are not responsible for enforcing compliance by third parties to |
1387 | +this License. |
1388 | + |
1389 | + 7. If, as a consequence of a court judgment or allegation of patent |
1390 | +infringement or for any other reason (not limited to patent issues), |
1391 | +conditions are imposed on you (whether by court order, agreement or |
1392 | +otherwise) that contradict the conditions of this License, they do not |
1393 | +excuse you from the conditions of this License. If you cannot |
1394 | +distribute so as to satisfy simultaneously your obligations under this |
1395 | +License and any other pertinent obligations, then as a consequence you |
1396 | +may not distribute the Program at all. For example, if a patent |
1397 | +license would not permit royalty-free redistribution of the Program by |
1398 | +all those who receive copies directly or indirectly through you, then |
1399 | +the only way you could satisfy both it and this License would be to |
1400 | +refrain entirely from distribution of the Program. |
1401 | + |
1402 | +If any portion of this section is held invalid or unenforceable under |
1403 | +any particular circumstance, the balance of the section is intended to |
1404 | +apply and the section as a whole is intended to apply in other |
1405 | +circumstances. |
1406 | + |
1407 | +It is not the purpose of this section to induce you to infringe any |
1408 | +patents or other property right claims or to contest validity of any |
1409 | +such claims; this section has the sole purpose of protecting the |
1410 | +integrity of the free software distribution system, which is |
1411 | +implemented by public license practices. Many people have made |
1412 | +generous contributions to the wide range of software distributed |
1413 | +through that system in reliance on consistent application of that |
1414 | +system; it is up to the author/donor to decide if he or she is willing |
1415 | +to distribute software through any other system and a licensee cannot |
1416 | +impose that choice. |
1417 | + |
1418 | +This section is intended to make thoroughly clear what is believed to |
1419 | +be a consequence of the rest of this License. |
1420 | + |
1421 | + 8. If the distribution and/or use of the Program is restricted in |
1422 | +certain countries either by patents or by copyrighted interfaces, the |
1423 | +original copyright holder who places the Program under this License |
1424 | +may add an explicit geographical distribution limitation excluding |
1425 | +those countries, so that distribution is permitted only in or among |
1426 | +countries not thus excluded. In such case, this License incorporates |
1427 | +the limitation as if written in the body of this License. |
1428 | + |
1429 | + 9. The Free Software Foundation may publish revised and/or new versions |
1430 | +of the General Public License from time to time. Such new versions will |
1431 | +be similar in spirit to the present version, but may differ in detail to |
1432 | +address new problems or concerns. |
1433 | + |
1434 | +Each version is given a distinguishing version number. If the Program |
1435 | +specifies a version number of this License which applies to it and "any |
1436 | +later version", you have the option of following the terms and conditions |
1437 | +either of that version or of any later version published by the Free |
1438 | +Software Foundation. If the Program does not specify a version number of |
1439 | +this License, you may choose any version ever published by the Free Software |
1440 | +Foundation. |
1441 | + |
1442 | + 10. If you wish to incorporate parts of the Program into other free |
1443 | +programs whose distribution conditions are different, write to the author |
1444 | +to ask for permission. For software which is copyrighted by the Free |
1445 | +Software Foundation, write to the Free Software Foundation; we sometimes |
1446 | +make exceptions for this. Our decision will be guided by the two goals |
1447 | +of preserving the free status of all derivatives of our free software and |
1448 | +of promoting the sharing and reuse of software generally. |
1449 | + |
1450 | + NO WARRANTY |
1451 | + |
1452 | + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
1453 | +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
1454 | +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
1455 | +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED |
1456 | +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
1457 | +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS |
1458 | +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE |
1459 | +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, |
1460 | +REPAIR OR CORRECTION. |
1461 | + |
1462 | + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
1463 | +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
1464 | +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
1465 | +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING |
1466 | +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED |
1467 | +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY |
1468 | +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER |
1469 | +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE |
1470 | +POSSIBILITY OF SUCH DAMAGES. |
1471 | + |
1472 | + END OF TERMS AND CONDITIONS |
1473 | + |
1474 | + How to Apply These Terms to Your New Programs |
1475 | + |
1476 | + If you develop a new program, and you want it to be of the greatest |
1477 | +possible use to the public, the best way to achieve this is to make it |
1478 | +free software which everyone can redistribute and change under these terms. |
1479 | + |
1480 | + To do so, attach the following notices to the program. It is safest |
1481 | +to attach them to the start of each source file to most effectively |
1482 | +convey the exclusion of warranty; and each file should have at least |
1483 | +the "copyright" line and a pointer to where the full notice is found. |
1484 | + |
1485 | + <one line to give the program's name and a brief idea of what it does.> |
1486 | + Copyright (C) <year> <name of author> |
1487 | + |
1488 | + This program is free software; you can redistribute it and/or modify |
1489 | + it under the terms of the GNU General Public License as published by |
1490 | + the Free Software Foundation; either version 2 of the License, or |
1491 | + (at your option) any later version. |
1492 | + |
1493 | + This program is distributed in the hope that it will be useful, |
1494 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
1495 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1496 | + GNU General Public License for more details. |
1497 | + |
1498 | + You should have received a copy of the GNU General Public License |
1499 | + along with this program; if not, write to the Free Software |
1500 | + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
1501 | + |
1502 | + |
1503 | +Also add information on how to contact you by electronic and paper mail. |
1504 | + |
1505 | +If the program is interactive, make it output a short notice like this |
1506 | +when it starts in an interactive mode: |
1507 | + |
1508 | + Gnomovision version 69, Copyright (C) year name of author |
1509 | + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
1510 | + This is free software, and you are welcome to redistribute it |
1511 | + under certain conditions; type `show c' for details. |
1512 | + |
1513 | +The hypothetical commands `show w' and `show c' should show the appropriate |
1514 | +parts of the General Public License. Of course, the commands you use may |
1515 | +be called something other than `show w' and `show c'; they could even be |
1516 | +mouse-clicks or menu items--whatever suits your program. |
1517 | + |
1518 | +You should also get your employer (if you work as a programmer) or your |
1519 | +school, if any, to sign a "copyright disclaimer" for the program, if |
1520 | +necessary. Here is a sample; alter the names: |
1521 | + |
1522 | + Yoyodyne, Inc., hereby disclaims all copyright interest in the program |
1523 | + `Gnomovision' (which makes passes at compilers) written by James Hacker. |
1524 | + |
1525 | + <signature of Ty Coon>, 1 April 1989 |
1526 | + Ty Coon, President of Vice |
1527 | + |
1528 | +This General Public License does not permit incorporating your program into |
1529 | +proprietary programs. If your program is a subroutine library, you may |
1530 | +consider it more useful to permit linking proprietary applications with the |
1531 | +library. If this is what you want to do, use the GNU Library General |
1532 | +Public License instead of this License. |
1533 | \ No newline at end of file |
1534 | |
1535 | === added file 'libs/NUnit/license.txt' |
1536 | --- libs/NUnit/license.txt 1970-01-01 00:00:00 +0000 |
1537 | +++ libs/NUnit/license.txt 2010-09-17 11:31:05 +0000 |
1538 | @@ -0,0 +1,15 @@ |
1539 | +Copyright © 2002-2008 Charlie Poole |
1540 | +Copyright © 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov |
1541 | +Copyright © 2000-2002 Philip A. Craig |
1542 | + |
1543 | +This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. |
1544 | + |
1545 | +Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: |
1546 | + |
1547 | +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment (see the following) in the product documentation is required. |
1548 | + |
1549 | +Portions Copyright © 2002-2008 Charlie Poole or Copyright © 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or Copyright © 2000-2002 Philip A. Craig |
1550 | + |
1551 | +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. |
1552 | + |
1553 | +3. This notice may not be removed or altered from any source distribution. |
1554 | |
1555 | === added file 'libs/NUnit/nunit.framework.dll' |
1556 | Binary files libs/NUnit/nunit.framework.dll 1970-01-01 00:00:00 +0000 and libs/NUnit/nunit.framework.dll 2010-09-17 11:31:05 +0000 differ |
1557 | === added file 'libs/NUnit/nunit.framework.xml' |
1558 | --- libs/NUnit/nunit.framework.xml 1970-01-01 00:00:00 +0000 |
1559 | +++ libs/NUnit/nunit.framework.xml 2010-09-17 11:31:05 +0000 |
1560 | @@ -0,0 +1,10113 @@ |
1561 | +<?xml version="1.0"?> |
1562 | +<doc> |
1563 | + <assembly> |
1564 | + <name>nunit.framework</name> |
1565 | + </assembly> |
1566 | + <members> |
1567 | + <member name="T:NUnit.Framework.Constraints.BinaryConstraint"> |
1568 | + <summary> |
1569 | + BinaryConstraint is the abstract base of all constraints |
1570 | + that combine two other constraints in some fashion. |
1571 | + </summary> |
1572 | + </member> |
1573 | + <member name="T:NUnit.Framework.Constraints.Constraint"> |
1574 | + <summary> |
1575 | + The Constraint class is the base of all built-in constraints |
1576 | + within NUnit. It provides the operator overloads used to combine |
1577 | + constraints. |
1578 | + </summary> |
1579 | + </member> |
1580 | + <member name="T:NUnit.Framework.Constraints.IResolveConstraint"> |
1581 | + <summary> |
1582 | + The IConstraintExpression interface is implemented by all |
1583 | + complete and resolvable constraints and expressions. |
1584 | + </summary> |
1585 | + </member> |
1586 | + <member name="M:NUnit.Framework.Constraints.IResolveConstraint.Resolve"> |
1587 | + <summary> |
1588 | + Return the top-level constraint for this expression |
1589 | + </summary> |
1590 | + <returns></returns> |
1591 | + </member> |
1592 | + <member name="F:NUnit.Framework.Constraints.Constraint.UNSET"> |
1593 | + <summary> |
1594 | + Static UnsetObject used to detect derived constraints |
1595 | + failing to set the actual value. |
1596 | + </summary> |
1597 | + </member> |
1598 | + <member name="F:NUnit.Framework.Constraints.Constraint.actual"> |
1599 | + <summary> |
1600 | + The actual value being tested against a constraint |
1601 | + </summary> |
1602 | + </member> |
1603 | + <member name="F:NUnit.Framework.Constraints.Constraint.displayName"> |
1604 | + <summary> |
1605 | + The display name of this Constraint for use by ToString() |
1606 | + </summary> |
1607 | + </member> |
1608 | + <member name="F:NUnit.Framework.Constraints.Constraint.argcnt"> |
1609 | + <summary> |
1610 | + Argument fields used by ToString(); |
1611 | + </summary> |
1612 | + </member> |
1613 | + <member name="F:NUnit.Framework.Constraints.Constraint.builder"> |
1614 | + <summary> |
1615 | + The builder holding this constraint |
1616 | + </summary> |
1617 | + </member> |
1618 | + <member name="M:NUnit.Framework.Constraints.Constraint.#ctor"> |
1619 | + <summary> |
1620 | + Construct a constraint with no arguments |
1621 | + </summary> |
1622 | + </member> |
1623 | + <member name="M:NUnit.Framework.Constraints.Constraint.#ctor(System.Object)"> |
1624 | + <summary> |
1625 | + Construct a constraint with one argument |
1626 | + </summary> |
1627 | + </member> |
1628 | + <member name="M:NUnit.Framework.Constraints.Constraint.#ctor(System.Object,System.Object)"> |
1629 | + <summary> |
1630 | + Construct a constraint with two arguments |
1631 | + </summary> |
1632 | + </member> |
1633 | + <member name="M:NUnit.Framework.Constraints.Constraint.SetBuilder(NUnit.Framework.Constraints.ConstraintBuilder)"> |
1634 | + <summary> |
1635 | + Sets the ConstraintBuilder holding this constraint |
1636 | + </summary> |
1637 | + </member> |
1638 | + <member name="M:NUnit.Framework.Constraints.Constraint.WriteMessageTo(NUnit.Framework.Constraints.MessageWriter)"> |
1639 | + <summary> |
1640 | + Write the failure message to the MessageWriter provided |
1641 | + as an argument. The default implementation simply passes |
1642 | + the constraint and the actual value to the writer, which |
1643 | + then displays the constraint description and the value. |
1644 | + |
1645 | + Constraints that need to provide additional details, |
1646 | + such as where the error occured can override this. |
1647 | + </summary> |
1648 | + <param name="writer">The MessageWriter on which to display the message</param> |
1649 | + </member> |
1650 | + <member name="M:NUnit.Framework.Constraints.Constraint.Matches(System.Object)"> |
1651 | + <summary> |
1652 | + Test whether the constraint is satisfied by a given value |
1653 | + </summary> |
1654 | + <param name="actual">The value to be tested</param> |
1655 | + <returns>True for success, false for failure</returns> |
1656 | + </member> |
1657 | + <member name="M:NUnit.Framework.Constraints.Constraint.Matches(NUnit.Framework.Constraints.ActualValueDelegate)"> |
1658 | + <summary> |
1659 | + Test whether the constraint is satisfied by an |
1660 | + ActualValueDelegate that returns the value to be tested. |
1661 | + The default implementation simply evaluates the delegate |
1662 | + but derived classes may override it to provide for delayed |
1663 | + processing. |
1664 | + </summary> |
1665 | + <param name="del">An ActualValueDelegate</param> |
1666 | + <returns>True for success, false for failure</returns> |
1667 | + </member> |
1668 | + <member name="M:NUnit.Framework.Constraints.Constraint.Matches``1(``0@)"> |
1669 | + <summary> |
1670 | + Test whether the constraint is satisfied by a given reference. |
1671 | + The default implementation simply dereferences the value but |
1672 | + derived classes may override it to provide for delayed processing. |
1673 | + </summary> |
1674 | + <param name="actual">A reference to the value to be tested</param> |
1675 | + <returns>True for success, false for failure</returns> |
1676 | + </member> |
1677 | + <member name="M:NUnit.Framework.Constraints.Constraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
1678 | + <summary> |
1679 | + Write the constraint description to a MessageWriter |
1680 | + </summary> |
1681 | + <param name="writer">The writer on which the description is displayed</param> |
1682 | + </member> |
1683 | + <member name="M:NUnit.Framework.Constraints.Constraint.WriteActualValueTo(NUnit.Framework.Constraints.MessageWriter)"> |
1684 | + <summary> |
1685 | + Write the actual value for a failing constraint test to a |
1686 | + MessageWriter. The default implementation simply writes |
1687 | + the raw value of actual, leaving it to the writer to |
1688 | + perform any formatting. |
1689 | + </summary> |
1690 | + <param name="writer">The writer on which the actual value is displayed</param> |
1691 | + </member> |
1692 | + <member name="M:NUnit.Framework.Constraints.Constraint.ToString"> |
1693 | + <summary> |
1694 | + Default override of ToString returns the constraint DisplayName |
1695 | + followed by any arguments within angle brackets. |
1696 | + </summary> |
1697 | + <returns></returns> |
1698 | + </member> |
1699 | + <member name="M:NUnit.Framework.Constraints.Constraint.op_BitwiseAnd(NUnit.Framework.Constraints.Constraint,NUnit.Framework.Constraints.Constraint)"> |
1700 | + <summary> |
1701 | + This operator creates a constraint that is satisfied only if both |
1702 | + argument constraints are satisfied. |
1703 | + </summary> |
1704 | + </member> |
1705 | + <member name="M:NUnit.Framework.Constraints.Constraint.op_BitwiseOr(NUnit.Framework.Constraints.Constraint,NUnit.Framework.Constraints.Constraint)"> |
1706 | + <summary> |
1707 | + This operator creates a constraint that is satisfied if either |
1708 | + of the argument constraints is satisfied. |
1709 | + </summary> |
1710 | + </member> |
1711 | + <member name="M:NUnit.Framework.Constraints.Constraint.op_LogicalNot(NUnit.Framework.Constraints.Constraint)"> |
1712 | + <summary> |
1713 | + This operator creates a constraint that is satisfied if the |
1714 | + argument constraint is not satisfied. |
1715 | + </summary> |
1716 | + </member> |
1717 | + <member name="M:NUnit.Framework.Constraints.Constraint.After(System.Int32)"> |
1718 | + <summary> |
1719 | + Returns a DelayedConstraint with the specified delay time. |
1720 | + </summary> |
1721 | + <param name="delayInMilliseconds">The delay in milliseconds.</param> |
1722 | + <returns></returns> |
1723 | + </member> |
1724 | + <member name="M:NUnit.Framework.Constraints.Constraint.After(System.Int32,System.Int32)"> |
1725 | + <summary> |
1726 | + Returns a DelayedConstraint with the specified delay time |
1727 | + and polling interval. |
1728 | + </summary> |
1729 | + <param name="delayInMilliseconds">The delay in milliseconds.</param> |
1730 | + <param name="pollingInterval">The interval at which to test the constraint.</param> |
1731 | + <returns></returns> |
1732 | + </member> |
1733 | + <member name="P:NUnit.Framework.Constraints.Constraint.DisplayName"> |
1734 | + <summary> |
1735 | + The display name of this Constraint for use by ToString(). |
1736 | + The default value is the name of the constraint with |
1737 | + trailing "Constraint" removed. Derived classes may set |
1738 | + this to another name in their constructors. |
1739 | + </summary> |
1740 | + </member> |
1741 | + <member name="P:NUnit.Framework.Constraints.Constraint.And"> |
1742 | + <summary> |
1743 | + Returns a ConstraintExpression by appending And |
1744 | + to the current constraint. |
1745 | + </summary> |
1746 | + </member> |
1747 | + <member name="P:NUnit.Framework.Constraints.Constraint.With"> |
1748 | + <summary> |
1749 | + Returns a ConstraintExpression by appending And |
1750 | + to the current constraint. |
1751 | + </summary> |
1752 | + </member> |
1753 | + <member name="P:NUnit.Framework.Constraints.Constraint.Or"> |
1754 | + <summary> |
1755 | + Returns a ConstraintExpression by appending Or |
1756 | + to the current constraint. |
1757 | + </summary> |
1758 | + </member> |
1759 | + <member name="T:NUnit.Framework.Constraints.Constraint.UnsetObject"> |
1760 | + <summary> |
1761 | + Class used to detect any derived constraints |
1762 | + that fail to set the actual value in their |
1763 | + Matches override. |
1764 | + </summary> |
1765 | + </member> |
1766 | + <member name="F:NUnit.Framework.Constraints.BinaryConstraint.left"> |
1767 | + <summary> |
1768 | + The first constraint being combined |
1769 | + </summary> |
1770 | + </member> |
1771 | + <member name="F:NUnit.Framework.Constraints.BinaryConstraint.right"> |
1772 | + <summary> |
1773 | + The second constraint being combined |
1774 | + </summary> |
1775 | + </member> |
1776 | + <member name="M:NUnit.Framework.Constraints.BinaryConstraint.#ctor(NUnit.Framework.Constraints.Constraint,NUnit.Framework.Constraints.Constraint)"> |
1777 | + <summary> |
1778 | + Construct a BinaryConstraint from two other constraints |
1779 | + </summary> |
1780 | + <param name="left">The first constraint</param> |
1781 | + <param name="right">The second constraint</param> |
1782 | + </member> |
1783 | + <member name="T:NUnit.Framework.Constraints.AndConstraint"> |
1784 | + <summary> |
1785 | + AndConstraint succeeds only if both members succeed. |
1786 | + </summary> |
1787 | + </member> |
1788 | + <member name="M:NUnit.Framework.Constraints.AndConstraint.#ctor(NUnit.Framework.Constraints.Constraint,NUnit.Framework.Constraints.Constraint)"> |
1789 | + <summary> |
1790 | + Create an AndConstraint from two other constraints |
1791 | + </summary> |
1792 | + <param name="left">The first constraint</param> |
1793 | + <param name="right">The second constraint</param> |
1794 | + </member> |
1795 | + <member name="M:NUnit.Framework.Constraints.AndConstraint.Matches(System.Object)"> |
1796 | + <summary> |
1797 | + Apply both member constraints to an actual value, succeeding |
1798 | + succeeding only if both of them succeed. |
1799 | + </summary> |
1800 | + <param name="actual">The actual value</param> |
1801 | + <returns>True if the constraints both succeeded</returns> |
1802 | + </member> |
1803 | + <member name="M:NUnit.Framework.Constraints.AndConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
1804 | + <summary> |
1805 | + Write a description for this contraint to a MessageWriter |
1806 | + </summary> |
1807 | + <param name="writer">The MessageWriter to receive the description</param> |
1808 | + </member> |
1809 | + <member name="M:NUnit.Framework.Constraints.AndConstraint.WriteActualValueTo(NUnit.Framework.Constraints.MessageWriter)"> |
1810 | + <summary> |
1811 | + Write the actual value for a failing constraint test to a |
1812 | + MessageWriter. The default implementation simply writes |
1813 | + the raw value of actual, leaving it to the writer to |
1814 | + perform any formatting. |
1815 | + </summary> |
1816 | + <param name="writer">The writer on which the actual value is displayed</param> |
1817 | + </member> |
1818 | + <member name="T:NUnit.Framework.Constraints.OrConstraint"> |
1819 | + <summary> |
1820 | + OrConstraint succeeds if either member succeeds |
1821 | + </summary> |
1822 | + </member> |
1823 | + <member name="M:NUnit.Framework.Constraints.OrConstraint.#ctor(NUnit.Framework.Constraints.Constraint,NUnit.Framework.Constraints.Constraint)"> |
1824 | + <summary> |
1825 | + Create an OrConstraint from two other constraints |
1826 | + </summary> |
1827 | + <param name="left">The first constraint</param> |
1828 | + <param name="right">The second constraint</param> |
1829 | + </member> |
1830 | + <member name="M:NUnit.Framework.Constraints.OrConstraint.Matches(System.Object)"> |
1831 | + <summary> |
1832 | + Apply the member constraints to an actual value, succeeding |
1833 | + succeeding as soon as one of them succeeds. |
1834 | + </summary> |
1835 | + <param name="actual">The actual value</param> |
1836 | + <returns>True if either constraint succeeded</returns> |
1837 | + </member> |
1838 | + <member name="M:NUnit.Framework.Constraints.OrConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
1839 | + <summary> |
1840 | + Write a description for this contraint to a MessageWriter |
1841 | + </summary> |
1842 | + <param name="writer">The MessageWriter to receive the description</param> |
1843 | + </member> |
1844 | + <member name="T:NUnit.Framework.Constraints.CollectionConstraint"> |
1845 | + <summary> |
1846 | + CollectionConstraint is the abstract base class for |
1847 | + constraints that operate on collections. |
1848 | + </summary> |
1849 | + </member> |
1850 | + <member name="M:NUnit.Framework.Constraints.CollectionConstraint.#ctor"> |
1851 | + <summary> |
1852 | + Construct an empty CollectionConstraint |
1853 | + </summary> |
1854 | + </member> |
1855 | + <member name="M:NUnit.Framework.Constraints.CollectionConstraint.#ctor(System.Object)"> |
1856 | + <summary> |
1857 | + Construct a CollectionConstraint |
1858 | + </summary> |
1859 | + <param name="arg"></param> |
1860 | + </member> |
1861 | + <member name="M:NUnit.Framework.Constraints.CollectionConstraint.IsEmpty(System.Collections.IEnumerable)"> |
1862 | + <summary> |
1863 | + Determines whether the specified enumerable is empty. |
1864 | + </summary> |
1865 | + <param name="enumerable">The enumerable.</param> |
1866 | + <returns> |
1867 | + <c>true</c> if the specified enumerable is empty; otherwise, <c>false</c>. |
1868 | + </returns> |
1869 | + </member> |
1870 | + <member name="M:NUnit.Framework.Constraints.CollectionConstraint.Matches(System.Object)"> |
1871 | + <summary> |
1872 | + Test whether the constraint is satisfied by a given value |
1873 | + </summary> |
1874 | + <param name="actual">The value to be tested</param> |
1875 | + <returns>True for success, false for failure</returns> |
1876 | + </member> |
1877 | + <member name="M:NUnit.Framework.Constraints.CollectionConstraint.doMatch(System.Collections.IEnumerable)"> |
1878 | + <summary> |
1879 | + Protected method to be implemented by derived classes |
1880 | + </summary> |
1881 | + <param name="collection"></param> |
1882 | + <returns></returns> |
1883 | + </member> |
1884 | + <member name="T:NUnit.Framework.Constraints.CollectionItemsEqualConstraint"> |
1885 | + <summary> |
1886 | + CollectionItemsEqualConstraint is the abstract base class for all |
1887 | + collection constraints that apply some notion of item equality |
1888 | + as a part of their operation. |
1889 | + </summary> |
1890 | + </member> |
1891 | + <member name="M:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.#ctor"> |
1892 | + <summary> |
1893 | + Construct an empty CollectionConstraint |
1894 | + </summary> |
1895 | + </member> |
1896 | + <member name="M:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.#ctor(System.Object)"> |
1897 | + <summary> |
1898 | + Construct a CollectionConstraint |
1899 | + </summary> |
1900 | + <param name="arg"></param> |
1901 | + </member> |
1902 | + <member name="M:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.Using(System.Collections.IComparer)"> |
1903 | + <summary> |
1904 | + Flag the constraint to use the supplied IComparer object. |
1905 | + </summary> |
1906 | + <param name="comparer">The IComparer object to use.</param> |
1907 | + <returns>Self.</returns> |
1908 | + </member> |
1909 | + <member name="M:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.Using``1(System.Collections.Generic.IComparer{``0})"> |
1910 | + <summary> |
1911 | + Flag the constraint to use the supplied IComparer object. |
1912 | + </summary> |
1913 | + <param name="comparer">The IComparer object to use.</param> |
1914 | + <returns>Self.</returns> |
1915 | + </member> |
1916 | + <member name="M:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.Using``1(System.Comparison{``0})"> |
1917 | + <summary> |
1918 | + Flag the constraint to use the supplied Comparison object. |
1919 | + </summary> |
1920 | + <param name="comparer">The IComparer object to use.</param> |
1921 | + <returns>Self.</returns> |
1922 | + </member> |
1923 | + <member name="M:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.Using(System.Collections.IEqualityComparer)"> |
1924 | + <summary> |
1925 | + Flag the constraint to use the supplied IEqualityComparer object. |
1926 | + </summary> |
1927 | + <param name="comparer">The IComparer object to use.</param> |
1928 | + <returns>Self.</returns> |
1929 | + </member> |
1930 | + <member name="M:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.Using``1(System.Collections.Generic.IEqualityComparer{``0})"> |
1931 | + <summary> |
1932 | + Flag the constraint to use the supplied IEqualityComparer object. |
1933 | + </summary> |
1934 | + <param name="comparer">The IComparer object to use.</param> |
1935 | + <returns>Self.</returns> |
1936 | + </member> |
1937 | + <member name="M:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.ItemsEqual(System.Object,System.Object)"> |
1938 | + <summary> |
1939 | + Compares two collection members for equality |
1940 | + </summary> |
1941 | + </member> |
1942 | + <member name="M:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.Tally(System.Collections.IEnumerable)"> |
1943 | + <summary> |
1944 | + Return a new CollectionTally for use in making tests |
1945 | + </summary> |
1946 | + <param name="c">The collection to be included in the tally</param> |
1947 | + </member> |
1948 | + <member name="P:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.IgnoreCase"> |
1949 | + <summary> |
1950 | + Flag the constraint to ignore case and return self. |
1951 | + </summary> |
1952 | + </member> |
1953 | + <member name="T:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.CollectionTally"> |
1954 | + <summary> |
1955 | + CollectionTally counts (tallies) the number of |
1956 | + occurences of each object in one or more enumerations. |
1957 | + </summary> |
1958 | + </member> |
1959 | + <member name="M:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.CollectionTally.#ctor(NUnit.Framework.Constraints.NUnitEqualityComparer,System.Collections.IEnumerable)"> |
1960 | + <summary> |
1961 | + Construct a CollectionTally object from a comparer and a collection |
1962 | + </summary> |
1963 | + </member> |
1964 | + <member name="M:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.CollectionTally.TryRemove(System.Object)"> |
1965 | + <summary> |
1966 | + Try to remove an object from the tally |
1967 | + </summary> |
1968 | + <param name="o">The object to remove</param> |
1969 | + <returns>True if successful, false if the object was not found</returns> |
1970 | + </member> |
1971 | + <member name="M:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.CollectionTally.TryRemove(System.Collections.IEnumerable)"> |
1972 | + <summary> |
1973 | + Try to remove a set of objects from the tally |
1974 | + </summary> |
1975 | + <param name="c">The objects to remove</param> |
1976 | + <returns>True if successful, false if any object was not found</returns> |
1977 | + </member> |
1978 | + <member name="P:NUnit.Framework.Constraints.CollectionItemsEqualConstraint.CollectionTally.Count"> |
1979 | + <summary> |
1980 | + The number of objects remaining in the tally |
1981 | + </summary> |
1982 | + </member> |
1983 | + <member name="T:NUnit.Framework.Constraints.EmptyCollectionConstraint"> |
1984 | + <summary> |
1985 | + EmptyCollectionConstraint tests whether a collection is empty. |
1986 | + </summary> |
1987 | + </member> |
1988 | + <member name="M:NUnit.Framework.Constraints.EmptyCollectionConstraint.doMatch(System.Collections.IEnumerable)"> |
1989 | + <summary> |
1990 | + Check that the collection is empty |
1991 | + </summary> |
1992 | + <param name="collection"></param> |
1993 | + <returns></returns> |
1994 | + </member> |
1995 | + <member name="M:NUnit.Framework.Constraints.EmptyCollectionConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
1996 | + <summary> |
1997 | + Write the constraint description to a MessageWriter |
1998 | + </summary> |
1999 | + <param name="writer"></param> |
2000 | + </member> |
2001 | + <member name="T:NUnit.Framework.Constraints.UniqueItemsConstraint"> |
2002 | + <summary> |
2003 | + UniqueItemsConstraint tests whether all the items in a |
2004 | + collection are unique. |
2005 | + </summary> |
2006 | + </member> |
2007 | + <member name="M:NUnit.Framework.Constraints.UniqueItemsConstraint.doMatch(System.Collections.IEnumerable)"> |
2008 | + <summary> |
2009 | + Check that all items are unique. |
2010 | + </summary> |
2011 | + <param name="actual"></param> |
2012 | + <returns></returns> |
2013 | + </member> |
2014 | + <member name="M:NUnit.Framework.Constraints.UniqueItemsConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2015 | + <summary> |
2016 | + Write a description of this constraint to a MessageWriter |
2017 | + </summary> |
2018 | + <param name="writer"></param> |
2019 | + </member> |
2020 | + <member name="T:NUnit.Framework.Constraints.CollectionContainsConstraint"> |
2021 | + <summary> |
2022 | + CollectionContainsConstraint is used to test whether a collection |
2023 | + contains an expected object as a member. |
2024 | + </summary> |
2025 | + </member> |
2026 | + <member name="M:NUnit.Framework.Constraints.CollectionContainsConstraint.#ctor(System.Object)"> |
2027 | + <summary> |
2028 | + Construct a CollectionContainsConstraint |
2029 | + </summary> |
2030 | + <param name="expected"></param> |
2031 | + </member> |
2032 | + <member name="M:NUnit.Framework.Constraints.CollectionContainsConstraint.doMatch(System.Collections.IEnumerable)"> |
2033 | + <summary> |
2034 | + Test whether the expected item is contained in the collection |
2035 | + </summary> |
2036 | + <param name="actual"></param> |
2037 | + <returns></returns> |
2038 | + </member> |
2039 | + <member name="M:NUnit.Framework.Constraints.CollectionContainsConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2040 | + <summary> |
2041 | + Write a descripton of the constraint to a MessageWriter |
2042 | + </summary> |
2043 | + <param name="writer"></param> |
2044 | + </member> |
2045 | + <member name="T:NUnit.Framework.Constraints.CollectionEquivalentConstraint"> |
2046 | + <summary> |
2047 | + CollectionEquivalentCOnstraint is used to determine whether two |
2048 | + collections are equivalent. |
2049 | + </summary> |
2050 | + </member> |
2051 | + <member name="M:NUnit.Framework.Constraints.CollectionEquivalentConstraint.#ctor(System.Collections.IEnumerable)"> |
2052 | + <summary> |
2053 | + Construct a CollectionEquivalentConstraint |
2054 | + </summary> |
2055 | + <param name="expected"></param> |
2056 | + </member> |
2057 | + <member name="M:NUnit.Framework.Constraints.CollectionEquivalentConstraint.doMatch(System.Collections.IEnumerable)"> |
2058 | + <summary> |
2059 | + Test whether two collections are equivalent |
2060 | + </summary> |
2061 | + <param name="actual"></param> |
2062 | + <returns></returns> |
2063 | + </member> |
2064 | + <member name="M:NUnit.Framework.Constraints.CollectionEquivalentConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2065 | + <summary> |
2066 | + Write a description of this constraint to a MessageWriter |
2067 | + </summary> |
2068 | + <param name="writer"></param> |
2069 | + </member> |
2070 | + <member name="T:NUnit.Framework.Constraints.CollectionSubsetConstraint"> |
2071 | + <summary> |
2072 | + CollectionSubsetConstraint is used to determine whether |
2073 | + one collection is a subset of another |
2074 | + </summary> |
2075 | + </member> |
2076 | + <member name="M:NUnit.Framework.Constraints.CollectionSubsetConstraint.#ctor(System.Collections.IEnumerable)"> |
2077 | + <summary> |
2078 | + Construct a CollectionSubsetConstraint |
2079 | + </summary> |
2080 | + <param name="expected">The collection that the actual value is expected to be a subset of</param> |
2081 | + </member> |
2082 | + <member name="M:NUnit.Framework.Constraints.CollectionSubsetConstraint.doMatch(System.Collections.IEnumerable)"> |
2083 | + <summary> |
2084 | + Test whether the actual collection is a subset of |
2085 | + the expected collection provided. |
2086 | + </summary> |
2087 | + <param name="actual"></param> |
2088 | + <returns></returns> |
2089 | + </member> |
2090 | + <member name="M:NUnit.Framework.Constraints.CollectionSubsetConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2091 | + <summary> |
2092 | + Write a description of this constraint to a MessageWriter |
2093 | + </summary> |
2094 | + <param name="writer"></param> |
2095 | + </member> |
2096 | + <member name="T:NUnit.Framework.Constraints.CollectionOrderedConstraint"> |
2097 | + <summary> |
2098 | + CollectionOrderedConstraint is used to test whether a collection is ordered. |
2099 | + </summary> |
2100 | + </member> |
2101 | + <member name="M:NUnit.Framework.Constraints.CollectionOrderedConstraint.#ctor"> |
2102 | + <summary> |
2103 | + Construct a CollectionOrderedConstraint |
2104 | + </summary> |
2105 | + </member> |
2106 | + <member name="M:NUnit.Framework.Constraints.CollectionOrderedConstraint.Using(System.Collections.IComparer)"> |
2107 | + <summary> |
2108 | + Modifies the constraint to use an IComparer and returns self. |
2109 | + </summary> |
2110 | + </member> |
2111 | + <member name="M:NUnit.Framework.Constraints.CollectionOrderedConstraint.Using``1(System.Collections.Generic.IComparer{``0})"> |
2112 | + <summary> |
2113 | + Modifies the constraint to use an IComparer<T> and returns self. |
2114 | + </summary> |
2115 | + </member> |
2116 | + <member name="M:NUnit.Framework.Constraints.CollectionOrderedConstraint.Using``1(System.Comparison{``0})"> |
2117 | + <summary> |
2118 | + Modifies the constraint to use a Comparison<T> and returns self. |
2119 | + </summary> |
2120 | + </member> |
2121 | + <member name="M:NUnit.Framework.Constraints.CollectionOrderedConstraint.By(System.String)"> |
2122 | + <summary> |
2123 | + Modifies the constraint to test ordering by the value of |
2124 | + a specified property and returns self. |
2125 | + </summary> |
2126 | + </member> |
2127 | + <member name="M:NUnit.Framework.Constraints.CollectionOrderedConstraint.doMatch(System.Collections.IEnumerable)"> |
2128 | + <summary> |
2129 | + Test whether the collection is ordered |
2130 | + </summary> |
2131 | + <param name="actual"></param> |
2132 | + <returns></returns> |
2133 | + </member> |
2134 | + <member name="M:NUnit.Framework.Constraints.CollectionOrderedConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2135 | + <summary> |
2136 | + Write a description of the constraint to a MessageWriter |
2137 | + </summary> |
2138 | + <param name="writer"></param> |
2139 | + </member> |
2140 | + <member name="M:NUnit.Framework.Constraints.CollectionOrderedConstraint.ToString"> |
2141 | + <summary> |
2142 | + Returns the string representation of the constraint. |
2143 | + </summary> |
2144 | + <returns></returns> |
2145 | + </member> |
2146 | + <member name="P:NUnit.Framework.Constraints.CollectionOrderedConstraint.Descending"> |
2147 | + <summary> |
2148 | + If used performs a reverse comparison |
2149 | + </summary> |
2150 | + </member> |
2151 | + <member name="T:NUnit.Framework.Constraints.ComparisonConstraint"> |
2152 | + <summary> |
2153 | + Abstract base class for constraints that compare values to |
2154 | + determine if one is greater than, equal to or less than |
2155 | + the other. |
2156 | + </summary> |
2157 | + </member> |
2158 | + <member name="F:NUnit.Framework.Constraints.ComparisonConstraint.expected"> |
2159 | + <summary> |
2160 | + The value against which a comparison is to be made |
2161 | + </summary> |
2162 | + </member> |
2163 | + <member name="F:NUnit.Framework.Constraints.ComparisonConstraint.ltOK"> |
2164 | + <summary> |
2165 | + If true, less than returns success |
2166 | + </summary> |
2167 | + </member> |
2168 | + <member name="F:NUnit.Framework.Constraints.ComparisonConstraint.eqOK"> |
2169 | + <summary> |
2170 | + if true, equal returns success |
2171 | + </summary> |
2172 | + </member> |
2173 | + <member name="F:NUnit.Framework.Constraints.ComparisonConstraint.gtOK"> |
2174 | + <summary> |
2175 | + if true, greater than returns success |
2176 | + </summary> |
2177 | + </member> |
2178 | + <member name="F:NUnit.Framework.Constraints.ComparisonConstraint.predicate"> |
2179 | + <summary> |
2180 | + The predicate used as a part of the description |
2181 | + </summary> |
2182 | + </member> |
2183 | + <member name="F:NUnit.Framework.Constraints.ComparisonConstraint.comparer"> |
2184 | + <summary> |
2185 | + ComparisonAdapter to be used in making the comparison |
2186 | + </summary> |
2187 | + </member> |
2188 | + <member name="M:NUnit.Framework.Constraints.ComparisonConstraint.#ctor(System.Object,System.Boolean,System.Boolean,System.Boolean,System.String)"> |
2189 | + <summary> |
2190 | + Initializes a new instance of the <see cref="T:ComparisonConstraint"/> class. |
2191 | + </summary> |
2192 | + <param name="value">The value against which to make a comparison.</param> |
2193 | + <param name="ltOK">if set to <c>true</c> less succeeds.</param> |
2194 | + <param name="eqOK">if set to <c>true</c> equal succeeds.</param> |
2195 | + <param name="gtOK">if set to <c>true</c> greater succeeds.</param> |
2196 | + <param name="predicate">String used in describing the constraint.</param> |
2197 | + </member> |
2198 | + <member name="M:NUnit.Framework.Constraints.ComparisonConstraint.Matches(System.Object)"> |
2199 | + <summary> |
2200 | + Test whether the constraint is satisfied by a given value |
2201 | + </summary> |
2202 | + <param name="actual">The value to be tested</param> |
2203 | + <returns>True for success, false for failure</returns> |
2204 | + </member> |
2205 | + <member name="M:NUnit.Framework.Constraints.ComparisonConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2206 | + <summary> |
2207 | + Write the constraint description to a MessageWriter |
2208 | + </summary> |
2209 | + <param name="writer">The writer on which the description is displayed</param> |
2210 | + </member> |
2211 | + <member name="M:NUnit.Framework.Constraints.ComparisonConstraint.Using(System.Collections.IComparer)"> |
2212 | + <summary> |
2213 | + Modifies the constraint to use an IComparer and returns self |
2214 | + </summary> |
2215 | + </member> |
2216 | + <member name="M:NUnit.Framework.Constraints.ComparisonConstraint.Using``1(System.Collections.Generic.IComparer{``0})"> |
2217 | + <summary> |
2218 | + Modifies the constraint to use an IComparer<T> and returns self |
2219 | + </summary> |
2220 | + </member> |
2221 | + <member name="M:NUnit.Framework.Constraints.ComparisonConstraint.Using``1(System.Comparison{``0})"> |
2222 | + <summary> |
2223 | + Modifies the constraint to use a Comparison<T> and returns self |
2224 | + </summary> |
2225 | + </member> |
2226 | + <member name="T:NUnit.Framework.Constraints.GreaterThanConstraint"> |
2227 | + <summary> |
2228 | + Tests whether a value is greater than the value supplied to its constructor |
2229 | + </summary> |
2230 | + </member> |
2231 | + <member name="M:NUnit.Framework.Constraints.GreaterThanConstraint.#ctor(System.Object)"> |
2232 | + <summary> |
2233 | + Initializes a new instance of the <see cref="T:GreaterThanConstraint"/> class. |
2234 | + </summary> |
2235 | + <param name="expected">The expected value.</param> |
2236 | + </member> |
2237 | + <member name="T:NUnit.Framework.Constraints.GreaterThanOrEqualConstraint"> |
2238 | + <summary> |
2239 | + Tests whether a value is greater than or equal to the value supplied to its constructor |
2240 | + </summary> |
2241 | + </member> |
2242 | + <member name="M:NUnit.Framework.Constraints.GreaterThanOrEqualConstraint.#ctor(System.Object)"> |
2243 | + <summary> |
2244 | + Initializes a new instance of the <see cref="T:GreaterThanOrEqualConstraint"/> class. |
2245 | + </summary> |
2246 | + <param name="expected">The expected value.</param> |
2247 | + </member> |
2248 | + <member name="T:NUnit.Framework.Constraints.LessThanConstraint"> |
2249 | + <summary> |
2250 | + Tests whether a value is less than the value supplied to its constructor |
2251 | + </summary> |
2252 | + </member> |
2253 | + <member name="M:NUnit.Framework.Constraints.LessThanConstraint.#ctor(System.Object)"> |
2254 | + <summary> |
2255 | + Initializes a new instance of the <see cref="T:LessThanConstraint"/> class. |
2256 | + </summary> |
2257 | + <param name="expected">The expected value.</param> |
2258 | + </member> |
2259 | + <member name="T:NUnit.Framework.Constraints.LessThanOrEqualConstraint"> |
2260 | + <summary> |
2261 | + Tests whether a value is less than or equal to the value supplied to its constructor |
2262 | + </summary> |
2263 | + </member> |
2264 | + <member name="M:NUnit.Framework.Constraints.LessThanOrEqualConstraint.#ctor(System.Object)"> |
2265 | + <summary> |
2266 | + Initializes a new instance of the <see cref="T:LessThanOrEqualConstraint"/> class. |
2267 | + </summary> |
2268 | + <param name="expected">The expected value.</param> |
2269 | + </member> |
2270 | + <member name="T:NUnit.Framework.Constraints.ActualValueDelegate"> |
2271 | + <summary> |
2272 | + Delegate used to delay evaluation of the actual value |
2273 | + to be used in evaluating a constraint |
2274 | + </summary> |
2275 | + </member> |
2276 | + <member name="T:NUnit.Framework.Constraints.ConstraintBuilder"> |
2277 | + <summary> |
2278 | + ConstraintBuilder maintains the stacks that are used in |
2279 | + processing a ConstraintExpression. An OperatorStack |
2280 | + is used to hold operators that are waiting for their |
2281 | + operands to be reognized. a ConstraintStack holds |
2282 | + input constraints as well as the results of each |
2283 | + operator applied. |
2284 | + </summary> |
2285 | + </member> |
2286 | + <member name="M:NUnit.Framework.Constraints.ConstraintBuilder.#ctor"> |
2287 | + <summary> |
2288 | + Initializes a new instance of the <see cref="T:ConstraintBuilder"/> class. |
2289 | + </summary> |
2290 | + </member> |
2291 | + <member name="M:NUnit.Framework.Constraints.ConstraintBuilder.Append(NUnit.Framework.Constraints.ConstraintOperator)"> |
2292 | + <summary> |
2293 | + Appends the specified operator to the expression by first |
2294 | + reducing the operator stack and then pushing the new |
2295 | + operator on the stack. |
2296 | + </summary> |
2297 | + <param name="op">The operator to push.</param> |
2298 | + </member> |
2299 | + <member name="M:NUnit.Framework.Constraints.ConstraintBuilder.Append(NUnit.Framework.Constraints.Constraint)"> |
2300 | + <summary> |
2301 | + Appends the specified constraint to the expresson by pushing |
2302 | + it on the constraint stack. |
2303 | + </summary> |
2304 | + <param name="constraint">The constraint to push.</param> |
2305 | + </member> |
2306 | + <member name="M:NUnit.Framework.Constraints.ConstraintBuilder.SetTopOperatorRightContext(System.Object)"> |
2307 | + <summary> |
2308 | + Sets the top operator right context. |
2309 | + </summary> |
2310 | + <param name="rightContext">The right context.</param> |
2311 | + </member> |
2312 | + <member name="M:NUnit.Framework.Constraints.ConstraintBuilder.ReduceOperatorStack(System.Int32)"> |
2313 | + <summary> |
2314 | + Reduces the operator stack until the topmost item |
2315 | + precedence is greater than or equal to the target precedence. |
2316 | + </summary> |
2317 | + <param name="targetPrecedence">The target precedence.</param> |
2318 | + </member> |
2319 | + <member name="M:NUnit.Framework.Constraints.ConstraintBuilder.Resolve"> |
2320 | + <summary> |
2321 | + Resolves this instance, returning a Constraint. If the builder |
2322 | + is not currently in a resolvable state, an exception is thrown. |
2323 | + </summary> |
2324 | + <returns>The resolved constraint</returns> |
2325 | + </member> |
2326 | + <member name="P:NUnit.Framework.Constraints.ConstraintBuilder.IsResolvable"> |
2327 | + <summary> |
2328 | + Gets a value indicating whether this instance is resolvable. |
2329 | + </summary> |
2330 | + <value> |
2331 | + <c>true</c> if this instance is resolvable; otherwise, <c>false</c>. |
2332 | + </value> |
2333 | + </member> |
2334 | + <member name="T:NUnit.Framework.Constraints.ConstraintBuilder.OperatorStack"> |
2335 | + <summary> |
2336 | + OperatorStack is a type-safe stack for holding ConstraintOperators |
2337 | + </summary> |
2338 | + </member> |
2339 | + <member name="M:NUnit.Framework.Constraints.ConstraintBuilder.OperatorStack.#ctor(NUnit.Framework.Constraints.ConstraintBuilder)"> |
2340 | + <summary> |
2341 | + Initializes a new instance of the <see cref="T:OperatorStack"/> class. |
2342 | + </summary> |
2343 | + <param name="builder">The builder.</param> |
2344 | + </member> |
2345 | + <member name="M:NUnit.Framework.Constraints.ConstraintBuilder.OperatorStack.Push(NUnit.Framework.Constraints.ConstraintOperator)"> |
2346 | + <summary> |
2347 | + Pushes the specified operator onto the stack. |
2348 | + </summary> |
2349 | + <param name="op">The op.</param> |
2350 | + </member> |
2351 | + <member name="M:NUnit.Framework.Constraints.ConstraintBuilder.OperatorStack.Pop"> |
2352 | + <summary> |
2353 | + Pops the topmost operator from the stack. |
2354 | + </summary> |
2355 | + <returns></returns> |
2356 | + </member> |
2357 | + <member name="P:NUnit.Framework.Constraints.ConstraintBuilder.OperatorStack.Empty"> |
2358 | + <summary> |
2359 | + Gets a value indicating whether this <see cref="T:OpStack"/> is empty. |
2360 | + </summary> |
2361 | + <value><c>true</c> if empty; otherwise, <c>false</c>.</value> |
2362 | + </member> |
2363 | + <member name="P:NUnit.Framework.Constraints.ConstraintBuilder.OperatorStack.Top"> |
2364 | + <summary> |
2365 | + Gets the topmost operator without modifying the stack. |
2366 | + </summary> |
2367 | + <value>The top.</value> |
2368 | + </member> |
2369 | + <member name="T:NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack"> |
2370 | + <summary> |
2371 | + ConstraintStack is a type-safe stack for holding Constraints |
2372 | + </summary> |
2373 | + </member> |
2374 | + <member name="M:NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack.#ctor(NUnit.Framework.Constraints.ConstraintBuilder)"> |
2375 | + <summary> |
2376 | + Initializes a new instance of the <see cref="T:ConstraintStack"/> class. |
2377 | + </summary> |
2378 | + <param name="builder">The builder.</param> |
2379 | + </member> |
2380 | + <member name="M:NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack.Push(NUnit.Framework.Constraints.Constraint)"> |
2381 | + <summary> |
2382 | + Pushes the specified constraint. As a side effect, |
2383 | + the constraint's builder field is set to the |
2384 | + ConstraintBuilder owning this stack. |
2385 | + </summary> |
2386 | + <param name="constraint">The constraint.</param> |
2387 | + </member> |
2388 | + <member name="M:NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack.Pop"> |
2389 | + <summary> |
2390 | + Pops this topmost constrait from the stack. |
2391 | + As a side effect, the constraint's builder |
2392 | + field is set to null. |
2393 | + </summary> |
2394 | + <returns></returns> |
2395 | + </member> |
2396 | + <member name="P:NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack.Empty"> |
2397 | + <summary> |
2398 | + Gets a value indicating whether this <see cref="T:ConstraintStack"/> is empty. |
2399 | + </summary> |
2400 | + <value><c>true</c> if empty; otherwise, <c>false</c>.</value> |
2401 | + </member> |
2402 | + <member name="P:NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack.Top"> |
2403 | + <summary> |
2404 | + Gets the topmost constraint without modifying the stack. |
2405 | + </summary> |
2406 | + <value>The topmost constraint</value> |
2407 | + </member> |
2408 | + <member name="T:NUnit.Framework.Constraints.EmptyConstraint"> |
2409 | + <summary> |
2410 | + EmptyConstraint tests a whether a string or collection is empty, |
2411 | + postponing the decision about which test is applied until the |
2412 | + type of the actual argument is known. |
2413 | + </summary> |
2414 | + </member> |
2415 | + <member name="M:NUnit.Framework.Constraints.EmptyConstraint.Matches(System.Object)"> |
2416 | + <summary> |
2417 | + Test whether the constraint is satisfied by a given value |
2418 | + </summary> |
2419 | + <param name="actual">The value to be tested</param> |
2420 | + <returns>True for success, false for failure</returns> |
2421 | + </member> |
2422 | + <member name="M:NUnit.Framework.Constraints.EmptyConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2423 | + <summary> |
2424 | + Write the constraint description to a MessageWriter |
2425 | + </summary> |
2426 | + <param name="writer">The writer on which the description is displayed</param> |
2427 | + </member> |
2428 | + <member name="T:NUnit.Framework.Constraints.EqualConstraint"> |
2429 | + <summary> |
2430 | + EqualConstraint is able to compare an actual value with the |
2431 | + expected value provided in its constructor. Two objects are |
2432 | + considered equal if both are null, or if both have the same |
2433 | + value. NUnit has special semantics for some object types. |
2434 | + </summary> |
2435 | + </member> |
2436 | + <member name="F:NUnit.Framework.Constraints.EqualConstraint.clipStrings"> |
2437 | + <summary> |
2438 | + If true, strings in error messages will be clipped |
2439 | + </summary> |
2440 | + </member> |
2441 | + <member name="F:NUnit.Framework.Constraints.EqualConstraint.comparer"> |
2442 | + <summary> |
2443 | + NUnitEqualityComparer used to test equality. |
2444 | + </summary> |
2445 | + </member> |
2446 | + <member name="M:NUnit.Framework.Constraints.EqualConstraint.#ctor(System.Object)"> |
2447 | + <summary> |
2448 | + Initializes a new instance of the <see cref="T:NUnit.Framework.Constraints.EqualConstraint"/> class. |
2449 | + </summary> |
2450 | + <param name="expected">The expected value.</param> |
2451 | + </member> |
2452 | + <member name="M:NUnit.Framework.Constraints.EqualConstraint.Within(System.Object)"> |
2453 | + <summary> |
2454 | + Flag the constraint to use a tolerance when determining equality. |
2455 | + </summary> |
2456 | + <param name="amount">Tolerance value to be used</param> |
2457 | + <returns>Self.</returns> |
2458 | + </member> |
2459 | + <member name="M:NUnit.Framework.Constraints.EqualConstraint.Comparer(System.Collections.IComparer)"> |
2460 | + <summary> |
2461 | + Flag the constraint to use the supplied IComparer object. |
2462 | + </summary> |
2463 | + <param name="comparer">The IComparer object to use.</param> |
2464 | + <returns>Self.</returns> |
2465 | + </member> |
2466 | + <member name="M:NUnit.Framework.Constraints.EqualConstraint.Using(System.Collections.IComparer)"> |
2467 | + <summary> |
2468 | + Flag the constraint to use the supplied IComparer object. |
2469 | + </summary> |
2470 | + <param name="comparer">The IComparer object to use.</param> |
2471 | + <returns>Self.</returns> |
2472 | + </member> |
2473 | + <member name="M:NUnit.Framework.Constraints.EqualConstraint.Using``1(System.Collections.Generic.IComparer{``0})"> |
2474 | + <summary> |
2475 | + Flag the constraint to use the supplied IComparer object. |
2476 | + </summary> |
2477 | + <param name="comparer">The IComparer object to use.</param> |
2478 | + <returns>Self.</returns> |
2479 | + </member> |
2480 | + <member name="M:NUnit.Framework.Constraints.EqualConstraint.Using``1(System.Comparison{``0})"> |
2481 | + <summary> |
2482 | + Flag the constraint to use the supplied Comparison object. |
2483 | + </summary> |
2484 | + <param name="comparer">The IComparer object to use.</param> |
2485 | + <returns>Self.</returns> |
2486 | + </member> |
2487 | + <member name="M:NUnit.Framework.Constraints.EqualConstraint.Using(System.Collections.IEqualityComparer)"> |
2488 | + <summary> |
2489 | + Flag the constraint to use the supplied IEqualityComparer object. |
2490 | + </summary> |
2491 | + <param name="comparer">The IComparer object to use.</param> |
2492 | + <returns>Self.</returns> |
2493 | + </member> |
2494 | + <member name="M:NUnit.Framework.Constraints.EqualConstraint.Using``1(System.Collections.Generic.IEqualityComparer{``0})"> |
2495 | + <summary> |
2496 | + Flag the constraint to use the supplied IEqualityComparer object. |
2497 | + </summary> |
2498 | + <param name="comparer">The IComparer object to use.</param> |
2499 | + <returns>Self.</returns> |
2500 | + </member> |
2501 | + <member name="M:NUnit.Framework.Constraints.EqualConstraint.Matches(System.Object)"> |
2502 | + <summary> |
2503 | + Test whether the constraint is satisfied by a given value |
2504 | + </summary> |
2505 | + <param name="actual">The value to be tested</param> |
2506 | + <returns>True for success, false for failure</returns> |
2507 | + </member> |
2508 | + <member name="M:NUnit.Framework.Constraints.EqualConstraint.WriteMessageTo(NUnit.Framework.Constraints.MessageWriter)"> |
2509 | + <summary> |
2510 | + Write a failure message. Overridden to provide custom |
2511 | + failure messages for EqualConstraint. |
2512 | + </summary> |
2513 | + <param name="writer">The MessageWriter to write to</param> |
2514 | + </member> |
2515 | + <member name="M:NUnit.Framework.Constraints.EqualConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2516 | + <summary> |
2517 | + Write description of this constraint |
2518 | + </summary> |
2519 | + <param name="writer">The MessageWriter to write to</param> |
2520 | + </member> |
2521 | + <member name="M:NUnit.Framework.Constraints.EqualConstraint.DisplayCollectionDifferences(NUnit.Framework.Constraints.MessageWriter,System.Collections.ICollection,System.Collections.ICollection,System.Int32)"> |
2522 | + <summary> |
2523 | + Display the failure information for two collections that did not match. |
2524 | + </summary> |
2525 | + <param name="writer">The MessageWriter on which to display</param> |
2526 | + <param name="expected">The expected collection.</param> |
2527 | + <param name="actual">The actual collection</param> |
2528 | + <param name="depth">The depth of this failure in a set of nested collections</param> |
2529 | + </member> |
2530 | + <member name="M:NUnit.Framework.Constraints.EqualConstraint.DisplayCollectionTypesAndSizes(NUnit.Framework.Constraints.MessageWriter,System.Collections.ICollection,System.Collections.ICollection,System.Int32)"> |
2531 | + <summary> |
2532 | + Displays a single line showing the types and sizes of the expected |
2533 | + and actual collections or arrays. If both are identical, the value is |
2534 | + only shown once. |
2535 | + </summary> |
2536 | + <param name="writer">The MessageWriter on which to display</param> |
2537 | + <param name="expected">The expected collection or array</param> |
2538 | + <param name="actual">The actual collection or array</param> |
2539 | + <param name="indent">The indentation level for the message line</param> |
2540 | + </member> |
2541 | + <member name="M:NUnit.Framework.Constraints.EqualConstraint.DisplayFailurePoint(NUnit.Framework.Constraints.MessageWriter,System.Collections.ICollection,System.Collections.ICollection,System.Int32,System.Int32)"> |
2542 | + <summary> |
2543 | + Displays a single line showing the point in the expected and actual |
2544 | + arrays at which the comparison failed. If the arrays have different |
2545 | + structures or dimensions, both values are shown. |
2546 | + </summary> |
2547 | + <param name="writer">The MessageWriter on which to display</param> |
2548 | + <param name="expected">The expected array</param> |
2549 | + <param name="actual">The actual array</param> |
2550 | + <param name="failurePoint">Index of the failure point in the underlying collections</param> |
2551 | + <param name="indent">The indentation level for the message line</param> |
2552 | + </member> |
2553 | + <member name="P:NUnit.Framework.Constraints.EqualConstraint.IgnoreCase"> |
2554 | + <summary> |
2555 | + Flag the constraint to ignore case and return self. |
2556 | + </summary> |
2557 | + </member> |
2558 | + <member name="P:NUnit.Framework.Constraints.EqualConstraint.NoClip"> |
2559 | + <summary> |
2560 | + Flag the constraint to suppress string clipping |
2561 | + and return self. |
2562 | + </summary> |
2563 | + </member> |
2564 | + <member name="P:NUnit.Framework.Constraints.EqualConstraint.AsCollection"> |
2565 | + <summary> |
2566 | + Flag the constraint to compare arrays as collections |
2567 | + and return self. |
2568 | + </summary> |
2569 | + </member> |
2570 | + <member name="P:NUnit.Framework.Constraints.EqualConstraint.Ulps"> |
2571 | + <summary> |
2572 | + Switches the .Within() modifier to interpret its tolerance as |
2573 | + a distance in representable values (see remarks). |
2574 | + </summary> |
2575 | + <returns>Self.</returns> |
2576 | + <remarks> |
2577 | + Ulp stands for "unit in the last place" and describes the minimum |
2578 | + amount a given value can change. For any integers, an ulp is 1 whole |
2579 | + digit. For floating point values, the accuracy of which is better |
2580 | + for smaller numbers and worse for larger numbers, an ulp depends |
2581 | + on the size of the number. Using ulps for comparison of floating |
2582 | + point results instead of fixed tolerances is safer because it will |
2583 | + automatically compensate for the added inaccuracy of larger numbers. |
2584 | + </remarks> |
2585 | + </member> |
2586 | + <member name="P:NUnit.Framework.Constraints.EqualConstraint.Percent"> |
2587 | + <summary> |
2588 | + Switches the .Within() modifier to interpret its tolerance as |
2589 | + a percentage that the actual values is allowed to deviate from |
2590 | + the expected value. |
2591 | + </summary> |
2592 | + <returns>Self</returns> |
2593 | + </member> |
2594 | + <member name="P:NUnit.Framework.Constraints.EqualConstraint.Days"> |
2595 | + <summary> |
2596 | + Causes the tolerance to be interpreted as a TimeSpan in days. |
2597 | + </summary> |
2598 | + <returns>Self</returns> |
2599 | + </member> |
2600 | + <member name="P:NUnit.Framework.Constraints.EqualConstraint.Hours"> |
2601 | + <summary> |
2602 | + Causes the tolerance to be interpreted as a TimeSpan in hours. |
2603 | + </summary> |
2604 | + <returns>Self</returns> |
2605 | + </member> |
2606 | + <member name="P:NUnit.Framework.Constraints.EqualConstraint.Minutes"> |
2607 | + <summary> |
2608 | + Causes the tolerance to be interpreted as a TimeSpan in minutes. |
2609 | + </summary> |
2610 | + <returns>Self</returns> |
2611 | + </member> |
2612 | + <member name="P:NUnit.Framework.Constraints.EqualConstraint.Seconds"> |
2613 | + <summary> |
2614 | + Causes the tolerance to be interpreted as a TimeSpan in seconds. |
2615 | + </summary> |
2616 | + <returns>Self</returns> |
2617 | + </member> |
2618 | + <member name="P:NUnit.Framework.Constraints.EqualConstraint.Milliseconds"> |
2619 | + <summary> |
2620 | + Causes the tolerance to be interpreted as a TimeSpan in milliseconds. |
2621 | + </summary> |
2622 | + <returns>Self</returns> |
2623 | + </member> |
2624 | + <member name="P:NUnit.Framework.Constraints.EqualConstraint.Ticks"> |
2625 | + <summary> |
2626 | + Causes the tolerance to be interpreted as a TimeSpan in clock ticks. |
2627 | + </summary> |
2628 | + <returns>Self</returns> |
2629 | + </member> |
2630 | + <member name="T:NUnit.Framework.Constraints.SameAsConstraint"> |
2631 | + <summary> |
2632 | + SameAsConstraint tests whether an object is identical to |
2633 | + the object passed to its constructor |
2634 | + </summary> |
2635 | + </member> |
2636 | + <member name="M:NUnit.Framework.Constraints.SameAsConstraint.#ctor(System.Object)"> |
2637 | + <summary> |
2638 | + Initializes a new instance of the <see cref="T:SameAsConstraint"/> class. |
2639 | + </summary> |
2640 | + <param name="expected">The expected object.</param> |
2641 | + </member> |
2642 | + <member name="M:NUnit.Framework.Constraints.SameAsConstraint.Matches(System.Object)"> |
2643 | + <summary> |
2644 | + Test whether the constraint is satisfied by a given value |
2645 | + </summary> |
2646 | + <param name="actual">The value to be tested</param> |
2647 | + <returns>True for success, false for failure</returns> |
2648 | + </member> |
2649 | + <member name="M:NUnit.Framework.Constraints.SameAsConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2650 | + <summary> |
2651 | + Write the constraint description to a MessageWriter |
2652 | + </summary> |
2653 | + <param name="writer">The writer on which the description is displayed</param> |
2654 | + </member> |
2655 | + <member name="T:NUnit.Framework.Constraints.StringConstraint"> |
2656 | + <summary> |
2657 | + StringConstraint is the abstract base for constraints |
2658 | + that operate on strings. It supports the IgnoreCase |
2659 | + modifier for string operations. |
2660 | + </summary> |
2661 | + </member> |
2662 | + <member name="F:NUnit.Framework.Constraints.StringConstraint.expected"> |
2663 | + <summary> |
2664 | + The expected value |
2665 | + </summary> |
2666 | + </member> |
2667 | + <member name="F:NUnit.Framework.Constraints.StringConstraint.caseInsensitive"> |
2668 | + <summary> |
2669 | + Indicates whether tests should be case-insensitive |
2670 | + </summary> |
2671 | + </member> |
2672 | + <member name="M:NUnit.Framework.Constraints.StringConstraint.#ctor(System.String)"> |
2673 | + <summary> |
2674 | + Constructs a StringConstraint given an expected value |
2675 | + </summary> |
2676 | + <param name="expected">The expected value</param> |
2677 | + </member> |
2678 | + <member name="P:NUnit.Framework.Constraints.StringConstraint.IgnoreCase"> |
2679 | + <summary> |
2680 | + Modify the constraint to ignore case in matching. |
2681 | + </summary> |
2682 | + </member> |
2683 | + <member name="T:NUnit.Framework.Constraints.EmptyStringConstraint"> |
2684 | + <summary> |
2685 | + EmptyStringConstraint tests whether a string is empty. |
2686 | + </summary> |
2687 | + </member> |
2688 | + <member name="M:NUnit.Framework.Constraints.EmptyStringConstraint.Matches(System.Object)"> |
2689 | + <summary> |
2690 | + Test whether the constraint is satisfied by a given value |
2691 | + </summary> |
2692 | + <param name="actual">The value to be tested</param> |
2693 | + <returns>True for success, false for failure</returns> |
2694 | + </member> |
2695 | + <member name="M:NUnit.Framework.Constraints.EmptyStringConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2696 | + <summary> |
2697 | + Write the constraint description to a MessageWriter |
2698 | + </summary> |
2699 | + <param name="writer">The writer on which the description is displayed</param> |
2700 | + </member> |
2701 | + <member name="T:NUnit.Framework.Constraints.NullOrEmptyStringConstraint"> |
2702 | + <summary> |
2703 | + NullEmptyStringConstraint tests whether a string is either null or empty. |
2704 | + </summary> |
2705 | + </member> |
2706 | + <member name="M:NUnit.Framework.Constraints.NullOrEmptyStringConstraint.#ctor"> |
2707 | + <summary> |
2708 | + Constructs a new NullOrEmptyStringConstraint |
2709 | + </summary> |
2710 | + </member> |
2711 | + <member name="M:NUnit.Framework.Constraints.NullOrEmptyStringConstraint.Matches(System.Object)"> |
2712 | + <summary> |
2713 | + Test whether the constraint is satisfied by a given value |
2714 | + </summary> |
2715 | + <param name="actual">The value to be tested</param> |
2716 | + <returns>True for success, false for failure</returns> |
2717 | + </member> |
2718 | + <member name="M:NUnit.Framework.Constraints.NullOrEmptyStringConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2719 | + <summary> |
2720 | + Write the constraint description to a MessageWriter |
2721 | + </summary> |
2722 | + <param name="writer">The writer on which the description is displayed</param> |
2723 | + </member> |
2724 | + <member name="T:NUnit.Framework.Constraints.SubstringConstraint"> |
2725 | + <summary> |
2726 | + SubstringConstraint can test whether a string contains |
2727 | + the expected substring. |
2728 | + </summary> |
2729 | + </member> |
2730 | + <member name="M:NUnit.Framework.Constraints.SubstringConstraint.#ctor(System.String)"> |
2731 | + <summary> |
2732 | + Initializes a new instance of the <see cref="T:SubstringConstraint"/> class. |
2733 | + </summary> |
2734 | + <param name="expected">The expected.</param> |
2735 | + </member> |
2736 | + <member name="M:NUnit.Framework.Constraints.SubstringConstraint.Matches(System.Object)"> |
2737 | + <summary> |
2738 | + Test whether the constraint is satisfied by a given value |
2739 | + </summary> |
2740 | + <param name="actual">The value to be tested</param> |
2741 | + <returns>True for success, false for failure</returns> |
2742 | + </member> |
2743 | + <member name="M:NUnit.Framework.Constraints.SubstringConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2744 | + <summary> |
2745 | + Write the constraint description to a MessageWriter |
2746 | + </summary> |
2747 | + <param name="writer">The writer on which the description is displayed</param> |
2748 | + </member> |
2749 | + <member name="T:NUnit.Framework.Constraints.StartsWithConstraint"> |
2750 | + <summary> |
2751 | + StartsWithConstraint can test whether a string starts |
2752 | + with an expected substring. |
2753 | + </summary> |
2754 | + </member> |
2755 | + <member name="M:NUnit.Framework.Constraints.StartsWithConstraint.#ctor(System.String)"> |
2756 | + <summary> |
2757 | + Initializes a new instance of the <see cref="T:StartsWithConstraint"/> class. |
2758 | + </summary> |
2759 | + <param name="expected">The expected string</param> |
2760 | + </member> |
2761 | + <member name="M:NUnit.Framework.Constraints.StartsWithConstraint.Matches(System.Object)"> |
2762 | + <summary> |
2763 | + Test whether the constraint is matched by the actual value. |
2764 | + This is a template method, which calls the IsMatch method |
2765 | + of the derived class. |
2766 | + </summary> |
2767 | + <param name="actual"></param> |
2768 | + <returns></returns> |
2769 | + </member> |
2770 | + <member name="M:NUnit.Framework.Constraints.StartsWithConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2771 | + <summary> |
2772 | + Write the constraint description to a MessageWriter |
2773 | + </summary> |
2774 | + <param name="writer">The writer on which the description is displayed</param> |
2775 | + </member> |
2776 | + <member name="T:NUnit.Framework.Constraints.EndsWithConstraint"> |
2777 | + <summary> |
2778 | + EndsWithConstraint can test whether a string ends |
2779 | + with an expected substring. |
2780 | + </summary> |
2781 | + </member> |
2782 | + <member name="M:NUnit.Framework.Constraints.EndsWithConstraint.#ctor(System.String)"> |
2783 | + <summary> |
2784 | + Initializes a new instance of the <see cref="T:EndsWithConstraint"/> class. |
2785 | + </summary> |
2786 | + <param name="expected">The expected string</param> |
2787 | + </member> |
2788 | + <member name="M:NUnit.Framework.Constraints.EndsWithConstraint.Matches(System.Object)"> |
2789 | + <summary> |
2790 | + Test whether the constraint is matched by the actual value. |
2791 | + This is a template method, which calls the IsMatch method |
2792 | + of the derived class. |
2793 | + </summary> |
2794 | + <param name="actual"></param> |
2795 | + <returns></returns> |
2796 | + </member> |
2797 | + <member name="M:NUnit.Framework.Constraints.EndsWithConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2798 | + <summary> |
2799 | + Write the constraint description to a MessageWriter |
2800 | + </summary> |
2801 | + <param name="writer">The writer on which the description is displayed</param> |
2802 | + </member> |
2803 | + <member name="T:NUnit.Framework.Constraints.RegexConstraint"> |
2804 | + <summary> |
2805 | + RegexConstraint can test whether a string matches |
2806 | + the pattern provided. |
2807 | + </summary> |
2808 | + </member> |
2809 | + <member name="M:NUnit.Framework.Constraints.RegexConstraint.#ctor(System.String)"> |
2810 | + <summary> |
2811 | + Initializes a new instance of the <see cref="T:RegexConstraint"/> class. |
2812 | + </summary> |
2813 | + <param name="pattern">The pattern.</param> |
2814 | + </member> |
2815 | + <member name="M:NUnit.Framework.Constraints.RegexConstraint.Matches(System.Object)"> |
2816 | + <summary> |
2817 | + Test whether the constraint is satisfied by a given value |
2818 | + </summary> |
2819 | + <param name="actual">The value to be tested</param> |
2820 | + <returns>True for success, false for failure</returns> |
2821 | + </member> |
2822 | + <member name="M:NUnit.Framework.Constraints.RegexConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2823 | + <summary> |
2824 | + Write the constraint description to a MessageWriter |
2825 | + </summary> |
2826 | + <param name="writer">The writer on which the description is displayed</param> |
2827 | + </member> |
2828 | + <member name="T:NUnit.Framework.Constraints.TypeConstraint"> |
2829 | + <summary> |
2830 | + TypeConstraint is the abstract base for constraints |
2831 | + that take a Type as their expected value. |
2832 | + </summary> |
2833 | + </member> |
2834 | + <member name="F:NUnit.Framework.Constraints.TypeConstraint.expectedType"> |
2835 | + <summary> |
2836 | + The expected Type used by the constraint |
2837 | + </summary> |
2838 | + </member> |
2839 | + <member name="M:NUnit.Framework.Constraints.TypeConstraint.#ctor(System.Type)"> |
2840 | + <summary> |
2841 | + Construct a TypeConstraint for a given Type |
2842 | + </summary> |
2843 | + <param name="type"></param> |
2844 | + </member> |
2845 | + <member name="M:NUnit.Framework.Constraints.TypeConstraint.WriteActualValueTo(NUnit.Framework.Constraints.MessageWriter)"> |
2846 | + <summary> |
2847 | + Write the actual value for a failing constraint test to a |
2848 | + MessageWriter. TypeConstraints override this method to write |
2849 | + the name of the type. |
2850 | + </summary> |
2851 | + <param name="writer">The writer on which the actual value is displayed</param> |
2852 | + </member> |
2853 | + <member name="T:NUnit.Framework.Constraints.ExactTypeConstraint"> |
2854 | + <summary> |
2855 | + ExactTypeConstraint is used to test that an object |
2856 | + is of the exact type provided in the constructor |
2857 | + </summary> |
2858 | + </member> |
2859 | + <member name="M:NUnit.Framework.Constraints.ExactTypeConstraint.#ctor(System.Type)"> |
2860 | + <summary> |
2861 | + Construct an ExactTypeConstraint for a given Type |
2862 | + </summary> |
2863 | + <param name="type">The expected Type.</param> |
2864 | + </member> |
2865 | + <member name="M:NUnit.Framework.Constraints.ExactTypeConstraint.Matches(System.Object)"> |
2866 | + <summary> |
2867 | + Test that an object is of the exact type specified |
2868 | + </summary> |
2869 | + <param name="actual">The actual value.</param> |
2870 | + <returns>True if the tested object is of the exact type provided, otherwise false.</returns> |
2871 | + </member> |
2872 | + <member name="M:NUnit.Framework.Constraints.ExactTypeConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2873 | + <summary> |
2874 | + Write the description of this constraint to a MessageWriter |
2875 | + </summary> |
2876 | + <param name="writer">The MessageWriter to use</param> |
2877 | + </member> |
2878 | + <member name="T:NUnit.Framework.Constraints.InstanceOfTypeConstraint"> |
2879 | + <summary> |
2880 | + InstanceOfTypeConstraint is used to test that an object |
2881 | + is of the same type provided or derived from it. |
2882 | + </summary> |
2883 | + </member> |
2884 | + <member name="M:NUnit.Framework.Constraints.InstanceOfTypeConstraint.#ctor(System.Type)"> |
2885 | + <summary> |
2886 | + Construct an InstanceOfTypeConstraint for the type provided |
2887 | + </summary> |
2888 | + <param name="type">The expected Type</param> |
2889 | + </member> |
2890 | + <member name="M:NUnit.Framework.Constraints.InstanceOfTypeConstraint.Matches(System.Object)"> |
2891 | + <summary> |
2892 | + Test whether an object is of the specified type or a derived type |
2893 | + </summary> |
2894 | + <param name="actual">The object to be tested</param> |
2895 | + <returns>True if the object is of the provided type or derives from it, otherwise false.</returns> |
2896 | + </member> |
2897 | + <member name="M:NUnit.Framework.Constraints.InstanceOfTypeConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2898 | + <summary> |
2899 | + Write a description of this constraint to a MessageWriter |
2900 | + </summary> |
2901 | + <param name="writer">The MessageWriter to use</param> |
2902 | + </member> |
2903 | + <member name="T:NUnit.Framework.Constraints.AssignableFromConstraint"> |
2904 | + <summary> |
2905 | + AssignableFromConstraint is used to test that an object |
2906 | + can be assigned from a given Type. |
2907 | + </summary> |
2908 | + </member> |
2909 | + <member name="M:NUnit.Framework.Constraints.AssignableFromConstraint.#ctor(System.Type)"> |
2910 | + <summary> |
2911 | + Construct an AssignableFromConstraint for the type provided |
2912 | + </summary> |
2913 | + <param name="type"></param> |
2914 | + </member> |
2915 | + <member name="M:NUnit.Framework.Constraints.AssignableFromConstraint.Matches(System.Object)"> |
2916 | + <summary> |
2917 | + Test whether an object can be assigned from the specified type |
2918 | + </summary> |
2919 | + <param name="actual">The object to be tested</param> |
2920 | + <returns>True if the object can be assigned a value of the expected Type, otherwise false.</returns> |
2921 | + </member> |
2922 | + <member name="M:NUnit.Framework.Constraints.AssignableFromConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2923 | + <summary> |
2924 | + Write a description of this constraint to a MessageWriter |
2925 | + </summary> |
2926 | + <param name="writer">The MessageWriter to use</param> |
2927 | + </member> |
2928 | + <member name="T:NUnit.Framework.Constraints.AssignableToConstraint"> |
2929 | + <summary> |
2930 | + AssignableToConstraint is used to test that an object |
2931 | + can be assigned to a given Type. |
2932 | + </summary> |
2933 | + </member> |
2934 | + <member name="M:NUnit.Framework.Constraints.AssignableToConstraint.#ctor(System.Type)"> |
2935 | + <summary> |
2936 | + Construct an AssignableToConstraint for the type provided |
2937 | + </summary> |
2938 | + <param name="type"></param> |
2939 | + </member> |
2940 | + <member name="M:NUnit.Framework.Constraints.AssignableToConstraint.Matches(System.Object)"> |
2941 | + <summary> |
2942 | + Test whether an object can be assigned to the specified type |
2943 | + </summary> |
2944 | + <param name="actual">The object to be tested</param> |
2945 | + <returns>True if the object can be assigned a value of the expected Type, otherwise false.</returns> |
2946 | + </member> |
2947 | + <member name="M:NUnit.Framework.Constraints.AssignableToConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2948 | + <summary> |
2949 | + Write a description of this constraint to a MessageWriter |
2950 | + </summary> |
2951 | + <param name="writer">The MessageWriter to use</param> |
2952 | + </member> |
2953 | + <member name="T:NUnit.Framework.Constraints.ContainsConstraint"> |
2954 | + <summary> |
2955 | + ContainsConstraint tests a whether a string contains a substring |
2956 | + or a collection contains an object. It postpones the decision of |
2957 | + which test to use until the type of the actual argument is known. |
2958 | + This allows testing whether a string is contained in a collection |
2959 | + or as a substring of another string using the same syntax. |
2960 | + </summary> |
2961 | + </member> |
2962 | + <member name="M:NUnit.Framework.Constraints.ContainsConstraint.#ctor(System.Object)"> |
2963 | + <summary> |
2964 | + Initializes a new instance of the <see cref="T:ContainsConstraint"/> class. |
2965 | + </summary> |
2966 | + <param name="expected">The expected.</param> |
2967 | + </member> |
2968 | + <member name="M:NUnit.Framework.Constraints.ContainsConstraint.Matches(System.Object)"> |
2969 | + <summary> |
2970 | + Test whether the constraint is satisfied by a given value |
2971 | + </summary> |
2972 | + <param name="actual">The value to be tested</param> |
2973 | + <returns>True for success, false for failure</returns> |
2974 | + </member> |
2975 | + <member name="M:NUnit.Framework.Constraints.ContainsConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
2976 | + <summary> |
2977 | + Write the constraint description to a MessageWriter |
2978 | + </summary> |
2979 | + <param name="writer">The writer on which the description is displayed</param> |
2980 | + </member> |
2981 | + <member name="P:NUnit.Framework.Constraints.ContainsConstraint.IgnoreCase"> |
2982 | + <summary> |
2983 | + Flag the constraint to ignore case and return self. |
2984 | + </summary> |
2985 | + </member> |
2986 | + <member name="T:NUnit.Framework.Constraints.PropertyExistsConstraint"> |
2987 | + <summary> |
2988 | + PropertyExistsConstraint tests that a named property |
2989 | + exists on the object provided through Match. |
2990 | + |
2991 | + Originally, PropertyConstraint provided this feature |
2992 | + in addition to making optional tests on the vaue |
2993 | + of the property. The two constraints are now separate. |
2994 | + </summary> |
2995 | + </member> |
2996 | + <member name="M:NUnit.Framework.Constraints.PropertyExistsConstraint.#ctor(System.String)"> |
2997 | + <summary> |
2998 | + Initializes a new instance of the <see cref="T:PropertyExistConstraint"/> class. |
2999 | + </summary> |
3000 | + <param name="name">The name of the property.</param> |
3001 | + </member> |
3002 | + <member name="M:NUnit.Framework.Constraints.PropertyExistsConstraint.Matches(System.Object)"> |
3003 | + <summary> |
3004 | + Test whether the property exists for a given object |
3005 | + </summary> |
3006 | + <param name="actual">The object to be tested</param> |
3007 | + <returns>True for success, false for failure</returns> |
3008 | + </member> |
3009 | + <member name="M:NUnit.Framework.Constraints.PropertyExistsConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
3010 | + <summary> |
3011 | + Write the constraint description to a MessageWriter |
3012 | + </summary> |
3013 | + <param name="writer">The writer on which the description is displayed</param> |
3014 | + </member> |
3015 | + <member name="M:NUnit.Framework.Constraints.PropertyExistsConstraint.WriteActualValueTo(NUnit.Framework.Constraints.MessageWriter)"> |
3016 | + <summary> |
3017 | + Write the actual value for a failing constraint test to a |
3018 | + MessageWriter. |
3019 | + </summary> |
3020 | + <param name="writer">The writer on which the actual value is displayed</param> |
3021 | + </member> |
3022 | + <member name="M:NUnit.Framework.Constraints.PropertyExistsConstraint.ToString"> |
3023 | + <summary> |
3024 | + Returns the string representation of the constraint. |
3025 | + </summary> |
3026 | + <returns></returns> |
3027 | + </member> |
3028 | + <member name="T:NUnit.Framework.Constraints.PropertyConstraint"> |
3029 | + <summary> |
3030 | + PropertyConstraint extracts a named property and uses |
3031 | + its value as the actual value for a chained constraint. |
3032 | + </summary> |
3033 | + </member> |
3034 | + <member name="T:NUnit.Framework.Constraints.PrefixConstraint"> |
3035 | + <summary> |
3036 | + Abstract base class used for prefixes |
3037 | + </summary> |
3038 | + </member> |
3039 | + <member name="F:NUnit.Framework.Constraints.PrefixConstraint.baseConstraint"> |
3040 | + <summary> |
3041 | + The base constraint |
3042 | + </summary> |
3043 | + </member> |
3044 | + <member name="M:NUnit.Framework.Constraints.PrefixConstraint.#ctor(NUnit.Framework.Constraints.IResolveConstraint)"> |
3045 | + <summary> |
3046 | + Construct given a base constraint |
3047 | + </summary> |
3048 | + <param name="resolvable"></param> |
3049 | + </member> |
3050 | + <member name="M:NUnit.Framework.Constraints.PropertyConstraint.#ctor(System.String,NUnit.Framework.Constraints.Constraint)"> |
3051 | + <summary> |
3052 | + Initializes a new instance of the <see cref="T:PropertyConstraint"/> class. |
3053 | + </summary> |
3054 | + <param name="name">The name.</param> |
3055 | + <param name="baseConstraint">The constraint to apply to the property.</param> |
3056 | + </member> |
3057 | + <member name="M:NUnit.Framework.Constraints.PropertyConstraint.Matches(System.Object)"> |
3058 | + <summary> |
3059 | + Test whether the constraint is satisfied by a given value |
3060 | + </summary> |
3061 | + <param name="actual">The value to be tested</param> |
3062 | + <returns>True for success, false for failure</returns> |
3063 | + </member> |
3064 | + <member name="M:NUnit.Framework.Constraints.PropertyConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
3065 | + <summary> |
3066 | + Write the constraint description to a MessageWriter |
3067 | + </summary> |
3068 | + <param name="writer">The writer on which the description is displayed</param> |
3069 | + </member> |
3070 | + <member name="M:NUnit.Framework.Constraints.PropertyConstraint.WriteActualValueTo(NUnit.Framework.Constraints.MessageWriter)"> |
3071 | + <summary> |
3072 | + Write the actual value for a failing constraint test to a |
3073 | + MessageWriter. The default implementation simply writes |
3074 | + the raw value of actual, leaving it to the writer to |
3075 | + perform any formatting. |
3076 | + </summary> |
3077 | + <param name="writer">The writer on which the actual value is displayed</param> |
3078 | + </member> |
3079 | + <member name="M:NUnit.Framework.Constraints.PropertyConstraint.ToString"> |
3080 | + <summary> |
3081 | + Returns the string representation of the constraint. |
3082 | + </summary> |
3083 | + <returns></returns> |
3084 | + </member> |
3085 | + <member name="T:NUnit.Framework.Constraints.NotConstraint"> |
3086 | + <summary> |
3087 | + NotConstraint negates the effect of some other constraint |
3088 | + </summary> |
3089 | + </member> |
3090 | + <member name="M:NUnit.Framework.Constraints.NotConstraint.#ctor(NUnit.Framework.Constraints.Constraint)"> |
3091 | + <summary> |
3092 | + Initializes a new instance of the <see cref="T:NotConstraint"/> class. |
3093 | + </summary> |
3094 | + <param name="baseConstraint">The base constraint to be negated.</param> |
3095 | + </member> |
3096 | + <member name="M:NUnit.Framework.Constraints.NotConstraint.Matches(System.Object)"> |
3097 | + <summary> |
3098 | + Test whether the constraint is satisfied by a given value |
3099 | + </summary> |
3100 | + <param name="actual">The value to be tested</param> |
3101 | + <returns>True for if the base constraint fails, false if it succeeds</returns> |
3102 | + </member> |
3103 | + <member name="M:NUnit.Framework.Constraints.NotConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
3104 | + <summary> |
3105 | + Write the constraint description to a MessageWriter |
3106 | + </summary> |
3107 | + <param name="writer">The writer on which the description is displayed</param> |
3108 | + </member> |
3109 | + <member name="M:NUnit.Framework.Constraints.NotConstraint.WriteActualValueTo(NUnit.Framework.Constraints.MessageWriter)"> |
3110 | + <summary> |
3111 | + Write the actual value for a failing constraint test to a MessageWriter. |
3112 | + </summary> |
3113 | + <param name="writer">The writer on which the actual value is displayed</param> |
3114 | + </member> |
3115 | + <member name="T:NUnit.Framework.Constraints.AllItemsConstraint"> |
3116 | + <summary> |
3117 | + AllItemsConstraint applies another constraint to each |
3118 | + item in a collection, succeeding if they all succeed. |
3119 | + </summary> |
3120 | + </member> |
3121 | + <member name="M:NUnit.Framework.Constraints.AllItemsConstraint.#ctor(NUnit.Framework.Constraints.Constraint)"> |
3122 | + <summary> |
3123 | + Construct an AllItemsConstraint on top of an existing constraint |
3124 | + </summary> |
3125 | + <param name="itemConstraint"></param> |
3126 | + </member> |
3127 | + <member name="M:NUnit.Framework.Constraints.AllItemsConstraint.Matches(System.Object)"> |
3128 | + <summary> |
3129 | + Apply the item constraint to each item in the collection, |
3130 | + failing if any item fails. |
3131 | + </summary> |
3132 | + <param name="actual"></param> |
3133 | + <returns></returns> |
3134 | + </member> |
3135 | + <member name="M:NUnit.Framework.Constraints.AllItemsConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
3136 | + <summary> |
3137 | + Write a description of this constraint to a MessageWriter |
3138 | + </summary> |
3139 | + <param name="writer"></param> |
3140 | + </member> |
3141 | + <member name="T:NUnit.Framework.Constraints.SomeItemsConstraint"> |
3142 | + <summary> |
3143 | + SomeItemsConstraint applies another constraint to each |
3144 | + item in a collection, succeeding if any of them succeeds. |
3145 | + </summary> |
3146 | + </member> |
3147 | + <member name="M:NUnit.Framework.Constraints.SomeItemsConstraint.#ctor(NUnit.Framework.Constraints.Constraint)"> |
3148 | + <summary> |
3149 | + Construct a SomeItemsConstraint on top of an existing constraint |
3150 | + </summary> |
3151 | + <param name="itemConstraint"></param> |
3152 | + </member> |
3153 | + <member name="M:NUnit.Framework.Constraints.SomeItemsConstraint.Matches(System.Object)"> |
3154 | + <summary> |
3155 | + Apply the item constraint to each item in the collection, |
3156 | + succeeding if any item succeeds. |
3157 | + </summary> |
3158 | + <param name="actual"></param> |
3159 | + <returns></returns> |
3160 | + </member> |
3161 | + <member name="M:NUnit.Framework.Constraints.SomeItemsConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
3162 | + <summary> |
3163 | + Write a description of this constraint to a MessageWriter |
3164 | + </summary> |
3165 | + <param name="writer"></param> |
3166 | + </member> |
3167 | + <member name="T:NUnit.Framework.Constraints.NoItemConstraint"> |
3168 | + <summary> |
3169 | + NoItemConstraint applies another constraint to each |
3170 | + item in a collection, failing if any of them succeeds. |
3171 | + </summary> |
3172 | + </member> |
3173 | + <member name="M:NUnit.Framework.Constraints.NoItemConstraint.#ctor(NUnit.Framework.Constraints.Constraint)"> |
3174 | + <summary> |
3175 | + Construct a SomeItemsConstraint on top of an existing constraint |
3176 | + </summary> |
3177 | + <param name="itemConstraint"></param> |
3178 | + </member> |
3179 | + <member name="M:NUnit.Framework.Constraints.NoItemConstraint.Matches(System.Object)"> |
3180 | + <summary> |
3181 | + Apply the item constraint to each item in the collection, |
3182 | + failing if any item fails. |
3183 | + </summary> |
3184 | + <param name="actual"></param> |
3185 | + <returns></returns> |
3186 | + </member> |
3187 | + <member name="M:NUnit.Framework.Constraints.NoItemConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
3188 | + <summary> |
3189 | + Write a description of this constraint to a MessageWriter |
3190 | + </summary> |
3191 | + <param name="writer"></param> |
3192 | + </member> |
3193 | + <member name="T:NUnit.Framework.Constraints.Numerics"> |
3194 | + <summary> |
3195 | + The Numerics class contains common operations on numeric values. |
3196 | + </summary> |
3197 | + </member> |
3198 | + <member name="M:NUnit.Framework.Constraints.Numerics.IsNumericType(System.Object)"> |
3199 | + <summary> |
3200 | + Checks the type of the object, returning true if |
3201 | + the object is a numeric type. |
3202 | + </summary> |
3203 | + <param name="obj">The object to check</param> |
3204 | + <returns>true if the object is a numeric type</returns> |
3205 | + </member> |
3206 | + <member name="M:NUnit.Framework.Constraints.Numerics.IsFloatingPointNumeric(System.Object)"> |
3207 | + <summary> |
3208 | + Checks the type of the object, returning true if |
3209 | + the object is a floating point numeric type. |
3210 | + </summary> |
3211 | + <param name="obj">The object to check</param> |
3212 | + <returns>true if the object is a floating point numeric type</returns> |
3213 | + </member> |
3214 | + <member name="M:NUnit.Framework.Constraints.Numerics.IsFixedPointNumeric(System.Object)"> |
3215 | + <summary> |
3216 | + Checks the type of the object, returning true if |
3217 | + the object is a fixed point numeric type. |
3218 | + </summary> |
3219 | + <param name="obj">The object to check</param> |
3220 | + <returns>true if the object is a fixed point numeric type</returns> |
3221 | + </member> |
3222 | + <member name="M:NUnit.Framework.Constraints.Numerics.AreEqual(System.Object,System.Object,NUnit.Framework.Constraints.Tolerance@)"> |
3223 | + <summary> |
3224 | + Test two numeric values for equality, performing the usual numeric |
3225 | + conversions and using a provided or default tolerance. If the tolerance |
3226 | + provided is Empty, this method may set it to a default tolerance. |
3227 | + </summary> |
3228 | + <param name="expected">The expected value</param> |
3229 | + <param name="actual">The actual value</param> |
3230 | + <param name="tolerance">A reference to the tolerance in effect</param> |
3231 | + <returns>True if the values are equal</returns> |
3232 | + </member> |
3233 | + <member name="M:NUnit.Framework.Constraints.Numerics.Compare(System.Object,System.Object)"> |
3234 | + <summary> |
3235 | + Compare two numeric values, performing the usual numeric conversions. |
3236 | + </summary> |
3237 | + <param name="expected">The expected value</param> |
3238 | + <param name="actual">The actual value</param> |
3239 | + <returns>The relationship of the values to each other</returns> |
3240 | + </member> |
3241 | + <member name="T:NUnit.Framework.Constraints.MessageWriter"> |
3242 | + <summary> |
3243 | + MessageWriter is the abstract base for classes that write |
3244 | + constraint descriptions and messages in some form. The |
3245 | + class has separate methods for writing various components |
3246 | + of a message, allowing implementations to tailor the |
3247 | + presentation as needed. |
3248 | + </summary> |
3249 | + </member> |
3250 | + <member name="M:NUnit.Framework.Constraints.MessageWriter.#ctor"> |
3251 | + <summary> |
3252 | + Construct a MessageWriter given a culture |
3253 | + </summary> |
3254 | + </member> |
3255 | + <member name="M:NUnit.Framework.Constraints.MessageWriter.WriteMessageLine(System.String,System.Object[])"> |
3256 | + <summary> |
3257 | + Method to write single line message with optional args, usually |
3258 | + written to precede the general failure message. |
3259 | + </summary> |
3260 | + <param name="message">The message to be written</param> |
3261 | + <param name="args">Any arguments used in formatting the message</param> |
3262 | + </member> |
3263 | + <member name="M:NUnit.Framework.Constraints.MessageWriter.WriteMessageLine(System.Int32,System.String,System.Object[])"> |
3264 | + <summary> |
3265 | + Method to write single line message with optional args, usually |
3266 | + written to precede the general failure message, at a givel |
3267 | + indentation level. |
3268 | + </summary> |
3269 | + <param name="level">The indentation level of the message</param> |
3270 | + <param name="message">The message to be written</param> |
3271 | + <param name="args">Any arguments used in formatting the message</param> |
3272 | + </member> |
3273 | + <member name="M:NUnit.Framework.Constraints.MessageWriter.DisplayDifferences(NUnit.Framework.Constraints.Constraint)"> |
3274 | + <summary> |
3275 | + Display Expected and Actual lines for a constraint. This |
3276 | + is called by MessageWriter's default implementation of |
3277 | + WriteMessageTo and provides the generic two-line display. |
3278 | + </summary> |
3279 | + <param name="constraint">The constraint that failed</param> |
3280 | + </member> |
3281 | + <member name="M:NUnit.Framework.Constraints.MessageWriter.DisplayDifferences(System.Object,System.Object)"> |
3282 | + <summary> |
3283 | + Display Expected and Actual lines for given values. This |
3284 | + method may be called by constraints that need more control over |
3285 | + the display of actual and expected values than is provided |
3286 | + by the default implementation. |
3287 | + </summary> |
3288 | + <param name="expected">The expected value</param> |
3289 | + <param name="actual">The actual value causing the failure</param> |
3290 | + </member> |
3291 | + <member name="M:NUnit.Framework.Constraints.MessageWriter.DisplayDifferences(System.Object,System.Object,NUnit.Framework.Constraints.Tolerance)"> |
3292 | + <summary> |
3293 | + Display Expected and Actual lines for given values, including |
3294 | + a tolerance value on the Expected line. |
3295 | + </summary> |
3296 | + <param name="expected">The expected value</param> |
3297 | + <param name="actual">The actual value causing the failure</param> |
3298 | + <param name="tolerance">The tolerance within which the test was made</param> |
3299 | + </member> |
3300 | + <member name="M:NUnit.Framework.Constraints.MessageWriter.DisplayStringDifferences(System.String,System.String,System.Int32,System.Boolean,System.Boolean)"> |
3301 | + <summary> |
3302 | + Display the expected and actual string values on separate lines. |
3303 | + If the mismatch parameter is >=0, an additional line is displayed |
3304 | + line containing a caret that points to the mismatch point. |
3305 | + </summary> |
3306 | + <param name="expected">The expected string value</param> |
3307 | + <param name="actual">The actual string value</param> |
3308 | + <param name="mismatch">The point at which the strings don't match or -1</param> |
3309 | + <param name="ignoreCase">If true, case is ignored in locating the point where the strings differ</param> |
3310 | + <param name="clipping">If true, the strings should be clipped to fit the line</param> |
3311 | + </member> |
3312 | + <member name="M:NUnit.Framework.Constraints.MessageWriter.WriteConnector(System.String)"> |
3313 | + <summary> |
3314 | + Writes the text for a connector. |
3315 | + </summary> |
3316 | + <param name="connector">The connector.</param> |
3317 | + </member> |
3318 | + <member name="M:NUnit.Framework.Constraints.MessageWriter.WritePredicate(System.String)"> |
3319 | + <summary> |
3320 | + Writes the text for a predicate. |
3321 | + </summary> |
3322 | + <param name="predicate">The predicate.</param> |
3323 | + </member> |
3324 | + <member name="M:NUnit.Framework.Constraints.MessageWriter.WriteExpectedValue(System.Object)"> |
3325 | + <summary> |
3326 | + Writes the text for an expected value. |
3327 | + </summary> |
3328 | + <param name="expected">The expected value.</param> |
3329 | + </member> |
3330 | + <member name="M:NUnit.Framework.Constraints.MessageWriter.WriteModifier(System.String)"> |
3331 | + <summary> |
3332 | + Writes the text for a modifier |
3333 | + </summary> |
3334 | + <param name="modifier">The modifier.</param> |
3335 | + </member> |
3336 | + <member name="M:NUnit.Framework.Constraints.MessageWriter.WriteActualValue(System.Object)"> |
3337 | + <summary> |
3338 | + Writes the text for an actual value. |
3339 | + </summary> |
3340 | + <param name="actual">The actual value.</param> |
3341 | + </member> |
3342 | + <member name="M:NUnit.Framework.Constraints.MessageWriter.WriteValue(System.Object)"> |
3343 | + <summary> |
3344 | + Writes the text for a generalized value. |
3345 | + </summary> |
3346 | + <param name="val">The value.</param> |
3347 | + </member> |
3348 | + <member name="M:NUnit.Framework.Constraints.MessageWriter.WriteCollectionElements(System.Collections.ICollection,System.Int32,System.Int32)"> |
3349 | + <summary> |
3350 | + Writes the text for a collection value, |
3351 | + starting at a particular point, to a max length |
3352 | + </summary> |
3353 | + <param name="collection">The collection containing elements to write.</param> |
3354 | + <param name="start">The starting point of the elements to write</param> |
3355 | + <param name="max">The maximum number of elements to write</param> |
3356 | + </member> |
3357 | + <member name="P:NUnit.Framework.Constraints.MessageWriter.MaxLineLength"> |
3358 | + <summary> |
3359 | + Abstract method to get the max line length |
3360 | + </summary> |
3361 | + </member> |
3362 | + <member name="T:NUnit.Framework.Constraints.MsgUtils"> |
3363 | + <summary> |
3364 | + Static methods used in creating messages |
3365 | + </summary> |
3366 | + </member> |
3367 | + <member name="F:NUnit.Framework.Constraints.MsgUtils.ELLIPSIS"> |
3368 | + <summary> |
3369 | + Static string used when strings are clipped |
3370 | + </summary> |
3371 | + </member> |
3372 | + <member name="M:NUnit.Framework.Constraints.MsgUtils.GetTypeRepresentation(System.Object)"> |
3373 | + <summary> |
3374 | + Returns the representation of a type as used in NUnitLite. |
3375 | + This is the same as Type.ToString() except for arrays, |
3376 | + which are displayed with their declared sizes. |
3377 | + </summary> |
3378 | + <param name="obj"></param> |
3379 | + <returns></returns> |
3380 | + </member> |
3381 | + <member name="M:NUnit.Framework.Constraints.MsgUtils.EscapeControlChars(System.String)"> |
3382 | + <summary> |
3383 | + Converts any control characters in a string |
3384 | + to their escaped representation. |
3385 | + </summary> |
3386 | + <param name="s">The string to be converted</param> |
3387 | + <returns>The converted string</returns> |
3388 | + </member> |
3389 | + <member name="M:NUnit.Framework.Constraints.MsgUtils.GetArrayIndicesAsString(System.Int32[])"> |
3390 | + <summary> |
3391 | + Return the a string representation for a set of indices into an array |
3392 | + </summary> |
3393 | + <param name="indices">Array of indices for which a string is needed</param> |
3394 | + </member> |
3395 | + <member name="M:NUnit.Framework.Constraints.MsgUtils.GetArrayIndicesFromCollectionIndex(System.Collections.ICollection,System.Int32)"> |
3396 | + <summary> |
3397 | + Get an array of indices representing the point in a collection or |
3398 | + array corresponding to a single int index into the collection. |
3399 | + </summary> |
3400 | + <param name="collection">The collection to which the indices apply</param> |
3401 | + <param name="index">Index in the collection</param> |
3402 | + <returns>Array of indices</returns> |
3403 | + </member> |
3404 | + <member name="M:NUnit.Framework.Constraints.MsgUtils.ClipString(System.String,System.Int32,System.Int32)"> |
3405 | + <summary> |
3406 | + Clip a string to a given length, starting at a particular offset, returning the clipped |
3407 | + string with ellipses representing the removed parts |
3408 | + </summary> |
3409 | + <param name="s">The string to be clipped</param> |
3410 | + <param name="maxStringLength">The maximum permitted length of the result string</param> |
3411 | + <param name="clipStart">The point at which to start clipping</param> |
3412 | + <returns>The clipped string</returns> |
3413 | + </member> |
3414 | + <member name="M:NUnit.Framework.Constraints.MsgUtils.ClipExpectedAndActual(System.String@,System.String@,System.Int32,System.Int32)"> |
3415 | + <summary> |
3416 | + Clip the expected and actual strings in a coordinated fashion, |
3417 | + so that they may be displayed together. |
3418 | + </summary> |
3419 | + <param name="expected"></param> |
3420 | + <param name="actual"></param> |
3421 | + <param name="maxDisplayLength"></param> |
3422 | + <param name="mismatch"></param> |
3423 | + </member> |
3424 | + <member name="M:NUnit.Framework.Constraints.MsgUtils.FindMismatchPosition(System.String,System.String,System.Int32,System.Boolean)"> |
3425 | + <summary> |
3426 | + Shows the position two strings start to differ. Comparison |
3427 | + starts at the start index. |
3428 | + </summary> |
3429 | + <param name="expected">The expected string</param> |
3430 | + <param name="actual">The actual string</param> |
3431 | + <param name="istart">The index in the strings at which comparison should start</param> |
3432 | + <param name="ignoreCase">Boolean indicating whether case should be ignored</param> |
3433 | + <returns>-1 if no mismatch found, or the index where mismatch found</returns> |
3434 | + </member> |
3435 | + <member name="T:NUnit.Framework.Constraints.PathConstraint"> |
3436 | + <summary> |
3437 | + PathConstraint serves as the abstract base of constraints |
3438 | + that operate on paths and provides several helper methods. |
3439 | + </summary> |
3440 | + </member> |
3441 | + <member name="F:NUnit.Framework.Constraints.PathConstraint.expected"> |
3442 | + <summary> |
3443 | + The expected path used in the constraint |
3444 | + </summary> |
3445 | + </member> |
3446 | + <member name="F:NUnit.Framework.Constraints.PathConstraint.caseInsensitive"> |
3447 | + <summary> |
3448 | + Flag indicating whether a caseInsensitive comparison should be made |
3449 | + </summary> |
3450 | + </member> |
3451 | + <member name="M:NUnit.Framework.Constraints.PathConstraint.#ctor(System.String)"> |
3452 | + <summary> |
3453 | + Construct a PathConstraint for a give expected path |
3454 | + </summary> |
3455 | + <param name="expected">The expected path</param> |
3456 | + </member> |
3457 | + <member name="M:NUnit.Framework.Constraints.PathConstraint.ToString"> |
3458 | + <summary> |
3459 | + Returns the string representation of this constraint |
3460 | + </summary> |
3461 | + </member> |
3462 | + <member name="M:NUnit.Framework.Constraints.PathConstraint.Canonicalize(System.String)"> |
3463 | + <summary> |
3464 | + Canonicalize the provided path |
3465 | + </summary> |
3466 | + <param name="path"></param> |
3467 | + <returns>The path in standardized form</returns> |
3468 | + </member> |
3469 | + <member name="M:NUnit.Framework.Constraints.PathConstraint.IsSamePath(System.String,System.String)"> |
3470 | + <summary> |
3471 | + Test whether two paths are the same |
3472 | + </summary> |
3473 | + <param name="path1">The first path</param> |
3474 | + <param name="path2">The second path</param> |
3475 | + <returns></returns> |
3476 | + </member> |
3477 | + <member name="M:NUnit.Framework.Constraints.PathConstraint.IsSamePathOrUnder(System.String,System.String)"> |
3478 | + <summary> |
3479 | + Test whether one path is the same as or under another path |
3480 | + </summary> |
3481 | + <param name="path1">The first path - supposed to be the parent path</param> |
3482 | + <param name="path2">The second path - supposed to be the child path</param> |
3483 | + <returns></returns> |
3484 | + </member> |
3485 | + <member name="P:NUnit.Framework.Constraints.PathConstraint.IgnoreCase"> |
3486 | + <summary> |
3487 | + Modifies the current instance to be case-insensitve |
3488 | + and returns it. |
3489 | + </summary> |
3490 | + </member> |
3491 | + <member name="P:NUnit.Framework.Constraints.PathConstraint.RespectCase"> |
3492 | + <summary> |
3493 | + Modifies the current instance to be case-sensitve |
3494 | + and returns it. |
3495 | + </summary> |
3496 | + </member> |
3497 | + <member name="T:NUnit.Framework.Constraints.SamePathConstraint"> |
3498 | + <summary> |
3499 | + Summary description for SamePathConstraint. |
3500 | + </summary> |
3501 | + </member> |
3502 | + <member name="M:NUnit.Framework.Constraints.SamePathConstraint.#ctor(System.String)"> |
3503 | + <summary> |
3504 | + Initializes a new instance of the <see cref="T:SamePathConstraint"/> class. |
3505 | + </summary> |
3506 | + <param name="expected">The expected path</param> |
3507 | + </member> |
3508 | + <member name="M:NUnit.Framework.Constraints.SamePathConstraint.Matches(System.Object)"> |
3509 | + <summary> |
3510 | + Test whether the constraint is satisfied by a given value |
3511 | + </summary> |
3512 | + <param name="actual">The value to be tested</param> |
3513 | + <returns>True for success, false for failure</returns> |
3514 | + </member> |
3515 | + <member name="M:NUnit.Framework.Constraints.SamePathConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
3516 | + <summary> |
3517 | + Write the constraint description to a MessageWriter |
3518 | + </summary> |
3519 | + <param name="writer">The writer on which the description is displayed</param> |
3520 | + </member> |
3521 | + <member name="T:NUnit.Framework.Constraints.SamePathOrUnderConstraint"> |
3522 | + <summary> |
3523 | + SamePathOrUnderConstraint tests that one path is under another |
3524 | + </summary> |
3525 | + </member> |
3526 | + <member name="M:NUnit.Framework.Constraints.SamePathOrUnderConstraint.#ctor(System.String)"> |
3527 | + <summary> |
3528 | + Initializes a new instance of the <see cref="T:SamePathOrUnderConstraint"/> class. |
3529 | + </summary> |
3530 | + <param name="expected">The expected path</param> |
3531 | + </member> |
3532 | + <member name="M:NUnit.Framework.Constraints.SamePathOrUnderConstraint.Matches(System.Object)"> |
3533 | + <summary> |
3534 | + Test whether the constraint is satisfied by a given value |
3535 | + </summary> |
3536 | + <param name="actual">The value to be tested</param> |
3537 | + <returns>True for success, false for failure</returns> |
3538 | + </member> |
3539 | + <member name="M:NUnit.Framework.Constraints.SamePathOrUnderConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
3540 | + <summary> |
3541 | + Write the constraint description to a MessageWriter |
3542 | + </summary> |
3543 | + <param name="writer">The writer on which the description is displayed</param> |
3544 | + </member> |
3545 | + <member name="T:NUnit.Framework.Constraints.EmptyDirectoryContraint"> |
3546 | + <summary> |
3547 | + EmptyDirectoryConstraint is used to test that a directory is empty |
3548 | + </summary> |
3549 | + </member> |
3550 | + <member name="M:NUnit.Framework.Constraints.EmptyDirectoryContraint.Matches(System.Object)"> |
3551 | + <summary> |
3552 | + Test whether the constraint is satisfied by a given value |
3553 | + </summary> |
3554 | + <param name="actual">The value to be tested</param> |
3555 | + <returns>True for success, false for failure</returns> |
3556 | + </member> |
3557 | + <member name="M:NUnit.Framework.Constraints.EmptyDirectoryContraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
3558 | + <summary> |
3559 | + Write the constraint description to a MessageWriter |
3560 | + </summary> |
3561 | + <param name="writer">The writer on which the description is displayed</param> |
3562 | + </member> |
3563 | + <member name="M:NUnit.Framework.Constraints.EmptyDirectoryContraint.WriteActualValueTo(NUnit.Framework.Constraints.MessageWriter)"> |
3564 | + <summary> |
3565 | + Write the actual value for a failing constraint test to a |
3566 | + MessageWriter. The default implementation simply writes |
3567 | + the raw value of actual, leaving it to the writer to |
3568 | + perform any formatting. |
3569 | + </summary> |
3570 | + <param name="writer">The writer on which the actual value is displayed</param> |
3571 | + </member> |
3572 | + <member name="T:NUnit.Framework.Constraints.SubDirectoryConstraint"> |
3573 | + <summary> |
3574 | + SubDirectoryConstraint is used to test that one directory is a subdirectory of another. |
3575 | + </summary> |
3576 | + </member> |
3577 | + <member name="M:NUnit.Framework.Constraints.SubDirectoryConstraint.#ctor(System.IO.DirectoryInfo)"> |
3578 | + <summary> |
3579 | + Initializes a new instance of the <see cref="T:SubDirectoryConstraint"/> class. |
3580 | + </summary> |
3581 | + <param name="dirInfo">The dir info.</param> |
3582 | + </member> |
3583 | + <member name="M:NUnit.Framework.Constraints.SubDirectoryConstraint.Matches(System.Object)"> |
3584 | + <summary> |
3585 | + Test whether the constraint is satisfied by a given value |
3586 | + </summary> |
3587 | + <param name="actual">The value to be tested</param> |
3588 | + <returns>True for success, false for failure</returns> |
3589 | + </member> |
3590 | + <member name="M:NUnit.Framework.Constraints.SubDirectoryConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
3591 | + <summary> |
3592 | + Write the constraint description to a MessageWriter |
3593 | + </summary> |
3594 | + <param name="writer">The writer on which the description is displayed</param> |
3595 | + </member> |
3596 | + <member name="M:NUnit.Framework.Constraints.SubDirectoryConstraint.BuildDirectoryList(System.IO.DirectoryInfo)"> |
3597 | + <summary> |
3598 | + Builds a list of DirectoryInfo objects, recursing where necessary |
3599 | + </summary> |
3600 | + <param name="StartingDirectory">directory to recurse</param> |
3601 | + <returns>list of DirectoryInfo objects from the top level</returns> |
3602 | + </member> |
3603 | + <member name="M:NUnit.Framework.Constraints.SubDirectoryConstraint.IsDirectoryOnPath(System.IO.DirectoryInfo,System.IO.DirectoryInfo)"> |
3604 | + <summary> |
3605 | + private method to determine whether a directory is within the path |
3606 | + </summary> |
3607 | + <param name="ParentDirectory">top-level directory to search</param> |
3608 | + <param name="SearchDirectory">directory to search for</param> |
3609 | + <returns>true if found, false if not</returns> |
3610 | + </member> |
3611 | + <member name="M:NUnit.Framework.Constraints.SubDirectoryConstraint.DirectoriesEqual(System.IO.DirectoryInfo,System.IO.DirectoryInfo)"> |
3612 | + <summary> |
3613 | + Method to compare two DirectoryInfo objects |
3614 | + </summary> |
3615 | + <param name="expected">first directory to compare</param> |
3616 | + <param name="actual">second directory to compare</param> |
3617 | + <returns>true if equivalent, false if not</returns> |
3618 | + </member> |
3619 | + <member name="T:NUnit.Framework.Constraints.ThrowsConstraint"> |
3620 | + <summary> |
3621 | + ThrowsConstraint is used to test the exception thrown by |
3622 | + a delegate by applying a constraint to it. |
3623 | + </summary> |
3624 | + </member> |
3625 | + <member name="M:NUnit.Framework.Constraints.ThrowsConstraint.#ctor(NUnit.Framework.Constraints.Constraint)"> |
3626 | + <summary> |
3627 | + Initializes a new instance of the <see cref="T:ThrowsConstraint"/> class, |
3628 | + using a constraint to be applied to the exception. |
3629 | + </summary> |
3630 | + <param name="baseConstraint">A constraint to apply to the caught exception.</param> |
3631 | + </member> |
3632 | + <member name="M:NUnit.Framework.Constraints.ThrowsConstraint.Matches(System.Object)"> |
3633 | + <summary> |
3634 | + Executes the code of the delegate and captures any exception. |
3635 | + If a non-null base constraint was provided, it applies that |
3636 | + constraint to the exception. |
3637 | + </summary> |
3638 | + <param name="actual">A delegate representing the code to be tested</param> |
3639 | + <returns>True if an exception is thrown and the constraint succeeds, otherwise false</returns> |
3640 | + </member> |
3641 | + <member name="M:NUnit.Framework.Constraints.ThrowsConstraint.Matches(NUnit.Framework.Constraints.ActualValueDelegate)"> |
3642 | + <summary> |
3643 | + Converts an ActualValueDelegate to a TestDelegate |
3644 | + before calling the primary overload. |
3645 | + </summary> |
3646 | + <param name="del"></param> |
3647 | + <returns></returns> |
3648 | + </member> |
3649 | + <member name="M:NUnit.Framework.Constraints.ThrowsConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
3650 | + <summary> |
3651 | + Write the constraint description to a MessageWriter |
3652 | + </summary> |
3653 | + <param name="writer">The writer on which the description is displayed</param> |
3654 | + </member> |
3655 | + <member name="M:NUnit.Framework.Constraints.ThrowsConstraint.WriteActualValueTo(NUnit.Framework.Constraints.MessageWriter)"> |
3656 | + <summary> |
3657 | + Write the actual value for a failing constraint test to a |
3658 | + MessageWriter. The default implementation simply writes |
3659 | + the raw value of actual, leaving it to the writer to |
3660 | + perform any formatting. |
3661 | + </summary> |
3662 | + <param name="writer">The writer on which the actual value is displayed</param> |
3663 | + </member> |
3664 | + <member name="M:NUnit.Framework.Constraints.ThrowsConstraint.ToString"> |
3665 | + <summary> |
3666 | + Returns the string representation of this constraint |
3667 | + </summary> |
3668 | + </member> |
3669 | + <member name="P:NUnit.Framework.Constraints.ThrowsConstraint.ActualException"> |
3670 | + <summary> |
3671 | + Get the actual exception thrown - used by Assert.Throws. |
3672 | + </summary> |
3673 | + </member> |
3674 | + <member name="T:NUnit.Framework.Constraints.ThrowsNothingConstraint"> |
3675 | + <summary> |
3676 | + ThrowsNothingConstraint tests that a delegate does not |
3677 | + throw an exception. |
3678 | + </summary> |
3679 | + </member> |
3680 | + <member name="M:NUnit.Framework.Constraints.ThrowsNothingConstraint.Matches(System.Object)"> |
3681 | + <summary> |
3682 | + Test whether the constraint is satisfied by a given value |
3683 | + </summary> |
3684 | + <param name="actual">The value to be tested</param> |
3685 | + <returns>True if no exception is thrown, otherwise false</returns> |
3686 | + </member> |
3687 | + <member name="M:NUnit.Framework.Constraints.ThrowsNothingConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
3688 | + <summary> |
3689 | + Write the constraint description to a MessageWriter |
3690 | + </summary> |
3691 | + <param name="writer">The writer on which the description is displayed</param> |
3692 | + </member> |
3693 | + <member name="M:NUnit.Framework.Constraints.ThrowsNothingConstraint.WriteActualValueTo(NUnit.Framework.Constraints.MessageWriter)"> |
3694 | + <summary> |
3695 | + Write the actual value for a failing constraint test to a |
3696 | + MessageWriter. The default implementation simply writes |
3697 | + the raw value of actual, leaving it to the writer to |
3698 | + perform any formatting. |
3699 | + </summary> |
3700 | + <param name="writer">The writer on which the actual value is displayed</param> |
3701 | + </member> |
3702 | + <member name="T:NUnit.Framework.Constraints.RangeConstraint"> |
3703 | + <summary> |
3704 | + RangeConstraint tests whethe two values are within a |
3705 | + specified range. |
3706 | + </summary> |
3707 | + </member> |
3708 | + <member name="M:NUnit.Framework.Constraints.RangeConstraint.#ctor(System.IComparable,System.IComparable)"> |
3709 | + <summary> |
3710 | + Initializes a new instance of the <see cref="T:RangeConstraint"/> class. |
3711 | + </summary> |
3712 | + <param name="from">From.</param> |
3713 | + <param name="to">To.</param> |
3714 | + </member> |
3715 | + <member name="M:NUnit.Framework.Constraints.RangeConstraint.Matches(System.Object)"> |
3716 | + <summary> |
3717 | + Test whether the constraint is satisfied by a given value |
3718 | + </summary> |
3719 | + <param name="actual">The value to be tested</param> |
3720 | + <returns>True for success, false for failure</returns> |
3721 | + </member> |
3722 | + <member name="M:NUnit.Framework.Constraints.RangeConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
3723 | + <summary> |
3724 | + Write the constraint description to a MessageWriter |
3725 | + </summary> |
3726 | + <param name="writer">The writer on which the description is displayed</param> |
3727 | + </member> |
3728 | + <member name="M:NUnit.Framework.Constraints.RangeConstraint.Using(System.Collections.IComparer)"> |
3729 | + <summary> |
3730 | + Modifies the constraint to use an IComparer and returns self. |
3731 | + </summary> |
3732 | + </member> |
3733 | + <member name="M:NUnit.Framework.Constraints.RangeConstraint.Using``1(System.Collections.Generic.IComparer{``0})"> |
3734 | + <summary> |
3735 | + Modifies the constraint to use an IComparer<T> and returns self. |
3736 | + </summary> |
3737 | + </member> |
3738 | + <member name="M:NUnit.Framework.Constraints.RangeConstraint.Using``1(System.Comparison{``0})"> |
3739 | + <summary> |
3740 | + Modifies the constraint to use a Comparison<T> and returns self. |
3741 | + </summary> |
3742 | + </member> |
3743 | + <member name="T:NUnit.Framework.Constraints.ConstraintFactory"> |
3744 | + <summary> |
3745 | + Helper class with properties and methods that supply |
3746 | + a number of constraints used in Asserts. |
3747 | + </summary> |
3748 | + </member> |
3749 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.Property(System.String)"> |
3750 | + <summary> |
3751 | + Returns a new PropertyConstraintExpression, which will either |
3752 | + test for the existence of the named property on the object |
3753 | + being tested or apply any following constraint to that property. |
3754 | + </summary> |
3755 | + </member> |
3756 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.Attribute(System.Type)"> |
3757 | + <summary> |
3758 | + Returns a new AttributeConstraint checking for the |
3759 | + presence of a particular attribute on an object. |
3760 | + </summary> |
3761 | + </member> |
3762 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.Attribute``1"> |
3763 | + <summary> |
3764 | + Returns a new AttributeConstraint checking for the |
3765 | + presence of a particular attribute on an object. |
3766 | + </summary> |
3767 | + </member> |
3768 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.EqualTo(System.Object)"> |
3769 | + <summary> |
3770 | + Returns a constraint that tests two items for equality |
3771 | + </summary> |
3772 | + </member> |
3773 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.SameAs(System.Object)"> |
3774 | + <summary> |
3775 | + Returns a constraint that tests that two references are the same object |
3776 | + </summary> |
3777 | + </member> |
3778 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.GreaterThan(System.Object)"> |
3779 | + <summary> |
3780 | + Returns a constraint that tests whether the |
3781 | + actual value is greater than the suppled argument |
3782 | + </summary> |
3783 | + </member> |
3784 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.GreaterThanOrEqualTo(System.Object)"> |
3785 | + <summary> |
3786 | + Returns a constraint that tests whether the |
3787 | + actual value is greater than or equal to the suppled argument |
3788 | + </summary> |
3789 | + </member> |
3790 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.AtLeast(System.Object)"> |
3791 | + <summary> |
3792 | + Returns a constraint that tests whether the |
3793 | + actual value is greater than or equal to the suppled argument |
3794 | + </summary> |
3795 | + </member> |
3796 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.LessThan(System.Object)"> |
3797 | + <summary> |
3798 | + Returns a constraint that tests whether the |
3799 | + actual value is less than the suppled argument |
3800 | + </summary> |
3801 | + </member> |
3802 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.LessThanOrEqualTo(System.Object)"> |
3803 | + <summary> |
3804 | + Returns a constraint that tests whether the |
3805 | + actual value is less than or equal to the suppled argument |
3806 | + </summary> |
3807 | + </member> |
3808 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.AtMost(System.Object)"> |
3809 | + <summary> |
3810 | + Returns a constraint that tests whether the |
3811 | + actual value is less than or equal to the suppled argument |
3812 | + </summary> |
3813 | + </member> |
3814 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.TypeOf(System.Type)"> |
3815 | + <summary> |
3816 | + Returns a constraint that tests whether the actual |
3817 | + value is of the exact type supplied as an argument. |
3818 | + </summary> |
3819 | + </member> |
3820 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.TypeOf``1"> |
3821 | + <summary> |
3822 | + Returns a constraint that tests whether the actual |
3823 | + value is of the exact type supplied as an argument. |
3824 | + </summary> |
3825 | + </member> |
3826 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.InstanceOf(System.Type)"> |
3827 | + <summary> |
3828 | + Returns a constraint that tests whether the actual value |
3829 | + is of the type supplied as an argument or a derived type. |
3830 | + </summary> |
3831 | + </member> |
3832 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.InstanceOf``1"> |
3833 | + <summary> |
3834 | + Returns a constraint that tests whether the actual value |
3835 | + is of the type supplied as an argument or a derived type. |
3836 | + </summary> |
3837 | + </member> |
3838 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.InstanceOfType(System.Type)"> |
3839 | + <summary> |
3840 | + Returns a constraint that tests whether the actual value |
3841 | + is of the type supplied as an argument or a derived type. |
3842 | + </summary> |
3843 | + </member> |
3844 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.InstanceOfType``1"> |
3845 | + <summary> |
3846 | + Returns a constraint that tests whether the actual value |
3847 | + is of the type supplied as an argument or a derived type. |
3848 | + </summary> |
3849 | + </member> |
3850 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.AssignableFrom(System.Type)"> |
3851 | + <summary> |
3852 | + Returns a constraint that tests whether the actual value |
3853 | + is assignable from the type supplied as an argument. |
3854 | + </summary> |
3855 | + </member> |
3856 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.AssignableFrom``1"> |
3857 | + <summary> |
3858 | + Returns a constraint that tests whether the actual value |
3859 | + is assignable from the type supplied as an argument. |
3860 | + </summary> |
3861 | + </member> |
3862 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.AssignableTo(System.Type)"> |
3863 | + <summary> |
3864 | + Returns a constraint that tests whether the actual value |
3865 | + is assignable from the type supplied as an argument. |
3866 | + </summary> |
3867 | + </member> |
3868 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.AssignableTo``1"> |
3869 | + <summary> |
3870 | + Returns a constraint that tests whether the actual value |
3871 | + is assignable from the type supplied as an argument. |
3872 | + </summary> |
3873 | + </member> |
3874 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.EquivalentTo(System.Collections.IEnumerable)"> |
3875 | + <summary> |
3876 | + Returns a constraint that tests whether the actual value |
3877 | + is a collection containing the same elements as the |
3878 | + collection supplied as an argument. |
3879 | + </summary> |
3880 | + </member> |
3881 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.SubsetOf(System.Collections.IEnumerable)"> |
3882 | + <summary> |
3883 | + Returns a constraint that tests whether the actual value |
3884 | + is a subset of the collection supplied as an argument. |
3885 | + </summary> |
3886 | + </member> |
3887 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.Member(System.Object)"> |
3888 | + <summary> |
3889 | + Returns a new CollectionContainsConstraint checking for the |
3890 | + presence of a particular object in the collection. |
3891 | + </summary> |
3892 | + </member> |
3893 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.Contains(System.Object)"> |
3894 | + <summary> |
3895 | + Returns a new CollectionContainsConstraint checking for the |
3896 | + presence of a particular object in the collection. |
3897 | + </summary> |
3898 | + </member> |
3899 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.Contains(System.String)"> |
3900 | + <summary> |
3901 | + Returns a new ContainsConstraint. This constraint |
3902 | + will, in turn, make use of the appropriate second-level |
3903 | + constraint, depending on the type of the actual argument. |
3904 | + This overload is only used if the item sought is a string, |
3905 | + since any other type implies that we are looking for a |
3906 | + collection member. |
3907 | + </summary> |
3908 | + </member> |
3909 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.StringContaining(System.String)"> |
3910 | + <summary> |
3911 | + Returns a constraint that succeeds if the actual |
3912 | + value contains the substring supplied as an argument. |
3913 | + </summary> |
3914 | + </member> |
3915 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.ContainsSubstring(System.String)"> |
3916 | + <summary> |
3917 | + Returns a constraint that succeeds if the actual |
3918 | + value contains the substring supplied as an argument. |
3919 | + </summary> |
3920 | + </member> |
3921 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.DoesNotContain(System.String)"> |
3922 | + <summary> |
3923 | + Returns a constraint that fails if the actual |
3924 | + value contains the substring supplied as an argument. |
3925 | + </summary> |
3926 | + </member> |
3927 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.StartsWith(System.String)"> |
3928 | + <summary> |
3929 | + Returns a constraint that succeeds if the actual |
3930 | + value starts with the substring supplied as an argument. |
3931 | + </summary> |
3932 | + </member> |
3933 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.StringStarting(System.String)"> |
3934 | + <summary> |
3935 | + Returns a constraint that succeeds if the actual |
3936 | + value starts with the substring supplied as an argument. |
3937 | + </summary> |
3938 | + </member> |
3939 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.DoesNotStartWith(System.String)"> |
3940 | + <summary> |
3941 | + Returns a constraint that fails if the actual |
3942 | + value starts with the substring supplied as an argument. |
3943 | + </summary> |
3944 | + </member> |
3945 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.EndsWith(System.String)"> |
3946 | + <summary> |
3947 | + Returns a constraint that succeeds if the actual |
3948 | + value ends with the substring supplied as an argument. |
3949 | + </summary> |
3950 | + </member> |
3951 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.StringEnding(System.String)"> |
3952 | + <summary> |
3953 | + Returns a constraint that succeeds if the actual |
3954 | + value ends with the substring supplied as an argument. |
3955 | + </summary> |
3956 | + </member> |
3957 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.DoesNotEndWith(System.String)"> |
3958 | + <summary> |
3959 | + Returns a constraint that fails if the actual |
3960 | + value ends with the substring supplied as an argument. |
3961 | + </summary> |
3962 | + </member> |
3963 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.Matches(System.String)"> |
3964 | + <summary> |
3965 | + Returns a constraint that succeeds if the actual |
3966 | + value matches the Regex pattern supplied as an argument. |
3967 | + </summary> |
3968 | + </member> |
3969 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.StringMatching(System.String)"> |
3970 | + <summary> |
3971 | + Returns a constraint that succeeds if the actual |
3972 | + value matches the Regex pattern supplied as an argument. |
3973 | + </summary> |
3974 | + </member> |
3975 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.DoesNotMatch(System.String)"> |
3976 | + <summary> |
3977 | + Returns a constraint that fails if the actual |
3978 | + value matches the pattern supplied as an argument. |
3979 | + </summary> |
3980 | + </member> |
3981 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.SamePath(System.String)"> |
3982 | + <summary> |
3983 | + Returns a constraint that tests whether the path provided |
3984 | + is the same as an expected path after canonicalization. |
3985 | + </summary> |
3986 | + </member> |
3987 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.SamePathOrUnder(System.String)"> |
3988 | + <summary> |
3989 | + Returns a constraint that tests whether the path provided |
3990 | + is the same path or under an expected path after canonicalization. |
3991 | + </summary> |
3992 | + </member> |
3993 | + <member name="M:NUnit.Framework.Constraints.ConstraintFactory.InRange(System.IComparable,System.IComparable)"> |
3994 | + <summary> |
3995 | + Returns a constraint that tests whether the actual value falls |
3996 | + within a specified range. |
3997 | + </summary> |
3998 | + </member> |
3999 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.Not"> |
4000 | + <summary> |
4001 | + Returns a ConstraintExpression that negates any |
4002 | + following constraint. |
4003 | + </summary> |
4004 | + </member> |
4005 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.No"> |
4006 | + <summary> |
4007 | + Returns a ConstraintExpression that negates any |
4008 | + following constraint. |
4009 | + </summary> |
4010 | + </member> |
4011 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.All"> |
4012 | + <summary> |
4013 | + Returns a ConstraintExpression, which will apply |
4014 | + the following constraint to all members of a collection, |
4015 | + succeeding if all of them succeed. |
4016 | + </summary> |
4017 | + </member> |
4018 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.Some"> |
4019 | + <summary> |
4020 | + Returns a ConstraintExpression, which will apply |
4021 | + the following constraint to all members of a collection, |
4022 | + succeeding if at least one of them succeeds. |
4023 | + </summary> |
4024 | + </member> |
4025 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.None"> |
4026 | + <summary> |
4027 | + Returns a ConstraintExpression, which will apply |
4028 | + the following constraint to all members of a collection, |
4029 | + succeeding if all of them fail. |
4030 | + </summary> |
4031 | + </member> |
4032 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.Length"> |
4033 | + <summary> |
4034 | + Returns a new ConstraintExpression, which will apply the following |
4035 | + constraint to the Length property of the object being tested. |
4036 | + </summary> |
4037 | + </member> |
4038 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.Count"> |
4039 | + <summary> |
4040 | + Returns a new ConstraintExpression, which will apply the following |
4041 | + constraint to the Count property of the object being tested. |
4042 | + </summary> |
4043 | + </member> |
4044 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.Message"> |
4045 | + <summary> |
4046 | + Returns a new ConstraintExpression, which will apply the following |
4047 | + constraint to the Message property of the object being tested. |
4048 | + </summary> |
4049 | + </member> |
4050 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.InnerException"> |
4051 | + <summary> |
4052 | + Returns a new ConstraintExpression, which will apply the following |
4053 | + constraint to the InnerException property of the object being tested. |
4054 | + </summary> |
4055 | + </member> |
4056 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.Null"> |
4057 | + <summary> |
4058 | + Returns a constraint that tests for null |
4059 | + </summary> |
4060 | + </member> |
4061 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.True"> |
4062 | + <summary> |
4063 | + Returns a constraint that tests for True |
4064 | + </summary> |
4065 | + </member> |
4066 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.False"> |
4067 | + <summary> |
4068 | + Returns a constraint that tests for False |
4069 | + </summary> |
4070 | + </member> |
4071 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.NaN"> |
4072 | + <summary> |
4073 | + Returns a constraint that tests for NaN |
4074 | + </summary> |
4075 | + </member> |
4076 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.Empty"> |
4077 | + <summary> |
4078 | + Returns a constraint that tests for empty |
4079 | + </summary> |
4080 | + </member> |
4081 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.Unique"> |
4082 | + <summary> |
4083 | + Returns a constraint that tests whether a collection |
4084 | + contains all unique items. |
4085 | + </summary> |
4086 | + </member> |
4087 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.BinarySerializable"> |
4088 | + <summary> |
4089 | + Returns a constraint that tests whether an object graph is serializable in binary format. |
4090 | + </summary> |
4091 | + </member> |
4092 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.XmlSerializable"> |
4093 | + <summary> |
4094 | + Returns a constraint that tests whether an object graph is serializable in xml format. |
4095 | + </summary> |
4096 | + </member> |
4097 | + <member name="P:NUnit.Framework.Constraints.ConstraintFactory.Ordered"> |
4098 | + <summary> |
4099 | + Returns a constraint that tests whether a collection is ordered |
4100 | + </summary> |
4101 | + </member> |
4102 | + <member name="T:NUnit.Framework.Constraints.ConstraintOperator"> |
4103 | + <summary> |
4104 | + The ConstraintOperator class is used internally by a |
4105 | + ConstraintBuilder to represent an operator that |
4106 | + modifies or combines constraints. |
4107 | + |
4108 | + Constraint operators use left and right precedence |
4109 | + values to determine whether the top operator on the |
4110 | + stack should be reduced before pushing a new operator. |
4111 | + </summary> |
4112 | + </member> |
4113 | + <member name="F:NUnit.Framework.Constraints.ConstraintOperator.left_precedence"> |
4114 | + <summary> |
4115 | + The precedence value used when the operator |
4116 | + is about to be pushed to the stack. |
4117 | + </summary> |
4118 | + </member> |
4119 | + <member name="F:NUnit.Framework.Constraints.ConstraintOperator.right_precedence"> |
4120 | + <summary> |
4121 | + The precedence value used when the operator |
4122 | + is on the top of the stack. |
4123 | + </summary> |
4124 | + </member> |
4125 | + <member name="M:NUnit.Framework.Constraints.ConstraintOperator.Reduce(NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack)"> |
4126 | + <summary> |
4127 | + Reduce produces a constraint from the operator and |
4128 | + any arguments. It takes the arguments from the constraint |
4129 | + stack and pushes the resulting constraint on it. |
4130 | + </summary> |
4131 | + <param name="stack"></param> |
4132 | + </member> |
4133 | + <member name="P:NUnit.Framework.Constraints.ConstraintOperator.LeftContext"> |
4134 | + <summary> |
4135 | + The syntax element preceding this operator |
4136 | + </summary> |
4137 | + </member> |
4138 | + <member name="P:NUnit.Framework.Constraints.ConstraintOperator.RightContext"> |
4139 | + <summary> |
4140 | + The syntax element folowing this operator |
4141 | + </summary> |
4142 | + </member> |
4143 | + <member name="P:NUnit.Framework.Constraints.ConstraintOperator.LeftPrecedence"> |
4144 | + <summary> |
4145 | + The precedence value used when the operator |
4146 | + is about to be pushed to the stack. |
4147 | + </summary> |
4148 | + </member> |
4149 | + <member name="P:NUnit.Framework.Constraints.ConstraintOperator.RightPrecedence"> |
4150 | + <summary> |
4151 | + The precedence value used when the operator |
4152 | + is on the top of the stack. |
4153 | + </summary> |
4154 | + </member> |
4155 | + <member name="T:NUnit.Framework.Constraints.PrefixOperator"> |
4156 | + <summary> |
4157 | + PrefixOperator takes a single constraint and modifies |
4158 | + it's action in some way. |
4159 | + </summary> |
4160 | + </member> |
4161 | + <member name="M:NUnit.Framework.Constraints.PrefixOperator.Reduce(NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack)"> |
4162 | + <summary> |
4163 | + Reduce produces a constraint from the operator and |
4164 | + any arguments. It takes the arguments from the constraint |
4165 | + stack and pushes the resulting constraint on it. |
4166 | + </summary> |
4167 | + <param name="stack"></param> |
4168 | + </member> |
4169 | + <member name="M:NUnit.Framework.Constraints.PrefixOperator.ApplyPrefix(NUnit.Framework.Constraints.Constraint)"> |
4170 | + <summary> |
4171 | + Returns the constraint created by applying this |
4172 | + prefix to another constraint. |
4173 | + </summary> |
4174 | + <param name="constraint"></param> |
4175 | + <returns></returns> |
4176 | + </member> |
4177 | + <member name="T:NUnit.Framework.Constraints.NotOperator"> |
4178 | + <summary> |
4179 | + Negates the test of the constraint it wraps. |
4180 | + </summary> |
4181 | + </member> |
4182 | + <member name="M:NUnit.Framework.Constraints.NotOperator.#ctor"> |
4183 | + <summary> |
4184 | + Constructs a new NotOperator |
4185 | + </summary> |
4186 | + </member> |
4187 | + <member name="M:NUnit.Framework.Constraints.NotOperator.ApplyPrefix(NUnit.Framework.Constraints.Constraint)"> |
4188 | + <summary> |
4189 | + Returns a NotConstraint applied to its argument. |
4190 | + </summary> |
4191 | + </member> |
4192 | + <member name="T:NUnit.Framework.Constraints.CollectionOperator"> |
4193 | + <summary> |
4194 | + Abstract base for operators that indicate how to |
4195 | + apply a constraint to items in a collection. |
4196 | + </summary> |
4197 | + </member> |
4198 | + <member name="M:NUnit.Framework.Constraints.CollectionOperator.#ctor"> |
4199 | + <summary> |
4200 | + Constructs a CollectionOperator |
4201 | + </summary> |
4202 | + </member> |
4203 | + <member name="T:NUnit.Framework.Constraints.AllOperator"> |
4204 | + <summary> |
4205 | + Represents a constraint that succeeds if all the |
4206 | + members of a collection match a base constraint. |
4207 | + </summary> |
4208 | + </member> |
4209 | + <member name="M:NUnit.Framework.Constraints.AllOperator.ApplyPrefix(NUnit.Framework.Constraints.Constraint)"> |
4210 | + <summary> |
4211 | + Returns a constraint that will apply the argument |
4212 | + to the members of a collection, succeeding if |
4213 | + they all succeed. |
4214 | + </summary> |
4215 | + </member> |
4216 | + <member name="T:NUnit.Framework.Constraints.SomeOperator"> |
4217 | + <summary> |
4218 | + Represents a constraint that succeeds if any of the |
4219 | + members of a collection match a base constraint. |
4220 | + </summary> |
4221 | + </member> |
4222 | + <member name="M:NUnit.Framework.Constraints.SomeOperator.ApplyPrefix(NUnit.Framework.Constraints.Constraint)"> |
4223 | + <summary> |
4224 | + Returns a constraint that will apply the argument |
4225 | + to the members of a collection, succeeding if |
4226 | + any of them succeed. |
4227 | + </summary> |
4228 | + </member> |
4229 | + <member name="T:NUnit.Framework.Constraints.NoneOperator"> |
4230 | + <summary> |
4231 | + Represents a constraint that succeeds if none of the |
4232 | + members of a collection match a base constraint. |
4233 | + </summary> |
4234 | + </member> |
4235 | + <member name="M:NUnit.Framework.Constraints.NoneOperator.ApplyPrefix(NUnit.Framework.Constraints.Constraint)"> |
4236 | + <summary> |
4237 | + Returns a constraint that will apply the argument |
4238 | + to the members of a collection, succeeding if |
4239 | + none of them succeed. |
4240 | + </summary> |
4241 | + </member> |
4242 | + <member name="T:NUnit.Framework.Constraints.WithOperator"> |
4243 | + <summary> |
4244 | + Represents a constraint that simply wraps the |
4245 | + constraint provided as an argument, without any |
4246 | + further functionality, but which modifes the |
4247 | + order of evaluation because of its precedence. |
4248 | + </summary> |
4249 | + </member> |
4250 | + <member name="M:NUnit.Framework.Constraints.WithOperator.#ctor"> |
4251 | + <summary> |
4252 | + Constructor for the WithOperator |
4253 | + </summary> |
4254 | + </member> |
4255 | + <member name="M:NUnit.Framework.Constraints.WithOperator.ApplyPrefix(NUnit.Framework.Constraints.Constraint)"> |
4256 | + <summary> |
4257 | + Returns a constraint that wraps its argument |
4258 | + </summary> |
4259 | + </member> |
4260 | + <member name="T:NUnit.Framework.Constraints.SelfResolvingOperator"> |
4261 | + <summary> |
4262 | + Abstract base class for operators that are able to reduce to a |
4263 | + constraint whether or not another syntactic element follows. |
4264 | + </summary> |
4265 | + </member> |
4266 | + <member name="T:NUnit.Framework.Constraints.PropOperator"> |
4267 | + <summary> |
4268 | + Operator used to test for the presence of a named Property |
4269 | + on an object and optionally apply further tests to the |
4270 | + value of that property. |
4271 | + </summary> |
4272 | + </member> |
4273 | + <member name="M:NUnit.Framework.Constraints.PropOperator.#ctor(System.String)"> |
4274 | + <summary> |
4275 | + Constructs a PropOperator for a particular named property |
4276 | + </summary> |
4277 | + </member> |
4278 | + <member name="M:NUnit.Framework.Constraints.PropOperator.Reduce(NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack)"> |
4279 | + <summary> |
4280 | + Reduce produces a constraint from the operator and |
4281 | + any arguments. It takes the arguments from the constraint |
4282 | + stack and pushes the resulting constraint on it. |
4283 | + </summary> |
4284 | + <param name="stack"></param> |
4285 | + </member> |
4286 | + <member name="P:NUnit.Framework.Constraints.PropOperator.Name"> |
4287 | + <summary> |
4288 | + Gets the name of the property to which the operator applies |
4289 | + </summary> |
4290 | + </member> |
4291 | + <member name="T:NUnit.Framework.Constraints.AttributeOperator"> |
4292 | + <summary> |
4293 | + Operator that tests for the presence of a particular attribute |
4294 | + on a type and optionally applies further tests to the attribute. |
4295 | + </summary> |
4296 | + </member> |
4297 | + <member name="M:NUnit.Framework.Constraints.AttributeOperator.#ctor(System.Type)"> |
4298 | + <summary> |
4299 | + Construct an AttributeOperator for a particular Type |
4300 | + </summary> |
4301 | + <param name="type">The Type of attribute tested</param> |
4302 | + </member> |
4303 | + <member name="M:NUnit.Framework.Constraints.AttributeOperator.Reduce(NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack)"> |
4304 | + <summary> |
4305 | + Reduce produces a constraint from the operator and |
4306 | + any arguments. It takes the arguments from the constraint |
4307 | + stack and pushes the resulting constraint on it. |
4308 | + </summary> |
4309 | + </member> |
4310 | + <member name="T:NUnit.Framework.Constraints.ThrowsOperator"> |
4311 | + <summary> |
4312 | + Operator that tests that an exception is thrown and |
4313 | + optionally applies further tests to the exception. |
4314 | + </summary> |
4315 | + </member> |
4316 | + <member name="M:NUnit.Framework.Constraints.ThrowsOperator.#ctor"> |
4317 | + <summary> |
4318 | + Construct a ThrowsOperator |
4319 | + </summary> |
4320 | + </member> |
4321 | + <member name="M:NUnit.Framework.Constraints.ThrowsOperator.Reduce(NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack)"> |
4322 | + <summary> |
4323 | + Reduce produces a constraint from the operator and |
4324 | + any arguments. It takes the arguments from the constraint |
4325 | + stack and pushes the resulting constraint on it. |
4326 | + </summary> |
4327 | + </member> |
4328 | + <member name="T:NUnit.Framework.Constraints.BinaryOperator"> |
4329 | + <summary> |
4330 | + Abstract base class for all binary operators |
4331 | + </summary> |
4332 | + </member> |
4333 | + <member name="M:NUnit.Framework.Constraints.BinaryOperator.Reduce(NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack)"> |
4334 | + <summary> |
4335 | + Reduce produces a constraint from the operator and |
4336 | + any arguments. It takes the arguments from the constraint |
4337 | + stack and pushes the resulting constraint on it. |
4338 | + </summary> |
4339 | + <param name="stack"></param> |
4340 | + </member> |
4341 | + <member name="M:NUnit.Framework.Constraints.BinaryOperator.ApplyOperator(NUnit.Framework.Constraints.Constraint,NUnit.Framework.Constraints.Constraint)"> |
4342 | + <summary> |
4343 | + Abstract method that produces a constraint by applying |
4344 | + the operator to its left and right constraint arguments. |
4345 | + </summary> |
4346 | + </member> |
4347 | + <member name="P:NUnit.Framework.Constraints.BinaryOperator.LeftPrecedence"> |
4348 | + <summary> |
4349 | + Gets the left precedence of the operator |
4350 | + </summary> |
4351 | + </member> |
4352 | + <member name="P:NUnit.Framework.Constraints.BinaryOperator.RightPrecedence"> |
4353 | + <summary> |
4354 | + Gets the right precedence of the operator |
4355 | + </summary> |
4356 | + </member> |
4357 | + <member name="T:NUnit.Framework.Constraints.AndOperator"> |
4358 | + <summary> |
4359 | + Operator that requires both it's arguments to succeed |
4360 | + </summary> |
4361 | + </member> |
4362 | + <member name="M:NUnit.Framework.Constraints.AndOperator.#ctor"> |
4363 | + <summary> |
4364 | + Construct an AndOperator |
4365 | + </summary> |
4366 | + </member> |
4367 | + <member name="M:NUnit.Framework.Constraints.AndOperator.ApplyOperator(NUnit.Framework.Constraints.Constraint,NUnit.Framework.Constraints.Constraint)"> |
4368 | + <summary> |
4369 | + Apply the operator to produce an AndConstraint |
4370 | + </summary> |
4371 | + </member> |
4372 | + <member name="T:NUnit.Framework.Constraints.OrOperator"> |
4373 | + <summary> |
4374 | + Operator that requires at least one of it's arguments to succeed |
4375 | + </summary> |
4376 | + </member> |
4377 | + <member name="M:NUnit.Framework.Constraints.OrOperator.#ctor"> |
4378 | + <summary> |
4379 | + Construct an OrOperator |
4380 | + </summary> |
4381 | + </member> |
4382 | + <member name="M:NUnit.Framework.Constraints.OrOperator.ApplyOperator(NUnit.Framework.Constraints.Constraint,NUnit.Framework.Constraints.Constraint)"> |
4383 | + <summary> |
4384 | + Apply the operator to produce an OrConstraint |
4385 | + </summary> |
4386 | + </member> |
4387 | + <member name="T:NUnit.Framework.Constraints.ConstraintExpression"> |
4388 | + <summary> |
4389 | + ConstraintExpression represents a compound constraint in the |
4390 | + process of being constructed from a series of syntactic elements. |
4391 | + |
4392 | + Individual elements are appended to the expression as they are |
4393 | + reognized. Once an actual Constraint is appended, the expression |
4394 | + returns a resolvable Constraint. |
4395 | + </summary> |
4396 | + </member> |
4397 | + <member name="T:NUnit.Framework.Constraints.ConstraintExpressionBase"> |
4398 | + <summary> |
4399 | + ConstraintExpressionBase is the abstract base class for the |
4400 | + generated ConstraintExpression class, which represents a |
4401 | + compound constraint in the process of being constructed |
4402 | + from a series of syntactic elements. |
4403 | + |
4404 | + NOTE: ConstraintExpressionBase is aware of some of its |
4405 | + derived classes, which is an apparent violation of |
4406 | + encapsulation. Ideally, these classes would be a |
4407 | + single class, but they must be separated in order to |
4408 | + allow parts to be generated under .NET 1.x and to |
4409 | + provide proper user feedback in syntactically |
4410 | + aware IDEs. |
4411 | + </summary> |
4412 | + </member> |
4413 | + <member name="F:NUnit.Framework.Constraints.ConstraintExpressionBase.builder"> |
4414 | + <summary> |
4415 | + The ConstraintBuilder holding the elements recognized so far |
4416 | + </summary> |
4417 | + </member> |
4418 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpressionBase.#ctor"> |
4419 | + <summary> |
4420 | + Initializes a new instance of the <see cref="T:ConstraintExpressionBase"/> class. |
4421 | + </summary> |
4422 | + </member> |
4423 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpressionBase.#ctor(NUnit.Framework.Constraints.ConstraintBuilder)"> |
4424 | + <summary> |
4425 | + Initializes a new instance of the <see cref="T:ConstraintExpressionBase"/> |
4426 | + class passing in a ConstraintBuilder, which may be pre-populated. |
4427 | + </summary> |
4428 | + <param name="builder">The builder.</param> |
4429 | + </member> |
4430 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpressionBase.ToString"> |
4431 | + <summary> |
4432 | + Returns a string representation of the expression as it |
4433 | + currently stands. This should only be used for testing, |
4434 | + since it has the side-effect of resolving the expression. |
4435 | + </summary> |
4436 | + <returns></returns> |
4437 | + </member> |
4438 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpressionBase.Append(NUnit.Framework.Constraints.ConstraintOperator)"> |
4439 | + <summary> |
4440 | + Appends an operator to the expression and returns the |
4441 | + resulting expression itself. |
4442 | + </summary> |
4443 | + </member> |
4444 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpressionBase.Append(NUnit.Framework.Constraints.SelfResolvingOperator)"> |
4445 | + <summary> |
4446 | + Appends a self-resolving operator to the expression and |
4447 | + returns a new ResolvableConstraintExpression. |
4448 | + </summary> |
4449 | + </member> |
4450 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpressionBase.Append(NUnit.Framework.Constraints.Constraint)"> |
4451 | + <summary> |
4452 | + Appends a constraint to the expression and returns that |
4453 | + constraint, which is associated with the current state |
4454 | + of the expression being built. |
4455 | + </summary> |
4456 | + </member> |
4457 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.#ctor"> |
4458 | + <summary> |
4459 | + Initializes a new instance of the <see cref="T:ConstraintExpression"/> class. |
4460 | + </summary> |
4461 | + </member> |
4462 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.#ctor(NUnit.Framework.Constraints.ConstraintBuilder)"> |
4463 | + <summary> |
4464 | + Initializes a new instance of the <see cref="T:ConstraintExpression"/> |
4465 | + class passing in a ConstraintBuilder, which may be pre-populated. |
4466 | + </summary> |
4467 | + <param name="builder">The builder.</param> |
4468 | + </member> |
4469 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.Property(System.String)"> |
4470 | + <summary> |
4471 | + Returns a new PropertyConstraintExpression, which will either |
4472 | + test for the existence of the named property on the object |
4473 | + being tested or apply any following constraint to that property. |
4474 | + </summary> |
4475 | + </member> |
4476 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.Attribute(System.Type)"> |
4477 | + <summary> |
4478 | + Returns a new AttributeConstraint checking for the |
4479 | + presence of a particular attribute on an object. |
4480 | + </summary> |
4481 | + </member> |
4482 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.Attribute``1"> |
4483 | + <summary> |
4484 | + Returns a new AttributeConstraint checking for the |
4485 | + presence of a particular attribute on an object. |
4486 | + </summary> |
4487 | + </member> |
4488 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.Matches(NUnit.Framework.Constraints.Constraint)"> |
4489 | + <summary> |
4490 | + Returns the constraint provided as an argument - used to allow custom |
4491 | + custom constraints to easily participate in the syntax. |
4492 | + </summary> |
4493 | + </member> |
4494 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.Matches``1(System.Predicate{``0})"> |
4495 | + <summary> |
4496 | + Returns the constraint provided as an argument - used to allow custom |
4497 | + custom constraints to easily participate in the syntax. |
4498 | + </summary> |
4499 | + </member> |
4500 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.EqualTo(System.Object)"> |
4501 | + <summary> |
4502 | + Returns a constraint that tests two items for equality |
4503 | + </summary> |
4504 | + </member> |
4505 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.SameAs(System.Object)"> |
4506 | + <summary> |
4507 | + Returns a constraint that tests that two references are the same object |
4508 | + </summary> |
4509 | + </member> |
4510 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.GreaterThan(System.Object)"> |
4511 | + <summary> |
4512 | + Returns a constraint that tests whether the |
4513 | + actual value is greater than the suppled argument |
4514 | + </summary> |
4515 | + </member> |
4516 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.GreaterThanOrEqualTo(System.Object)"> |
4517 | + <summary> |
4518 | + Returns a constraint that tests whether the |
4519 | + actual value is greater than or equal to the suppled argument |
4520 | + </summary> |
4521 | + </member> |
4522 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.AtLeast(System.Object)"> |
4523 | + <summary> |
4524 | + Returns a constraint that tests whether the |
4525 | + actual value is greater than or equal to the suppled argument |
4526 | + </summary> |
4527 | + </member> |
4528 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.LessThan(System.Object)"> |
4529 | + <summary> |
4530 | + Returns a constraint that tests whether the |
4531 | + actual value is less than the suppled argument |
4532 | + </summary> |
4533 | + </member> |
4534 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.LessThanOrEqualTo(System.Object)"> |
4535 | + <summary> |
4536 | + Returns a constraint that tests whether the |
4537 | + actual value is less than or equal to the suppled argument |
4538 | + </summary> |
4539 | + </member> |
4540 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.AtMost(System.Object)"> |
4541 | + <summary> |
4542 | + Returns a constraint that tests whether the |
4543 | + actual value is less than or equal to the suppled argument |
4544 | + </summary> |
4545 | + </member> |
4546 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.TypeOf(System.Type)"> |
4547 | + <summary> |
4548 | + Returns a constraint that tests whether the actual |
4549 | + value is of the exact type supplied as an argument. |
4550 | + </summary> |
4551 | + </member> |
4552 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.TypeOf``1"> |
4553 | + <summary> |
4554 | + Returns a constraint that tests whether the actual |
4555 | + value is of the exact type supplied as an argument. |
4556 | + </summary> |
4557 | + </member> |
4558 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.InstanceOf(System.Type)"> |
4559 | + <summary> |
4560 | + Returns a constraint that tests whether the actual value |
4561 | + is of the type supplied as an argument or a derived type. |
4562 | + </summary> |
4563 | + </member> |
4564 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.InstanceOf``1"> |
4565 | + <summary> |
4566 | + Returns a constraint that tests whether the actual value |
4567 | + is of the type supplied as an argument or a derived type. |
4568 | + </summary> |
4569 | + </member> |
4570 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.InstanceOfType(System.Type)"> |
4571 | + <summary> |
4572 | + Returns a constraint that tests whether the actual value |
4573 | + is of the type supplied as an argument or a derived type. |
4574 | + </summary> |
4575 | + </member> |
4576 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.InstanceOfType``1"> |
4577 | + <summary> |
4578 | + Returns a constraint that tests whether the actual value |
4579 | + is of the type supplied as an argument or a derived type. |
4580 | + </summary> |
4581 | + </member> |
4582 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.AssignableFrom(System.Type)"> |
4583 | + <summary> |
4584 | + Returns a constraint that tests whether the actual value |
4585 | + is assignable from the type supplied as an argument. |
4586 | + </summary> |
4587 | + </member> |
4588 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.AssignableFrom``1"> |
4589 | + <summary> |
4590 | + Returns a constraint that tests whether the actual value |
4591 | + is assignable from the type supplied as an argument. |
4592 | + </summary> |
4593 | + </member> |
4594 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.AssignableTo(System.Type)"> |
4595 | + <summary> |
4596 | + Returns a constraint that tests whether the actual value |
4597 | + is assignable from the type supplied as an argument. |
4598 | + </summary> |
4599 | + </member> |
4600 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.AssignableTo``1"> |
4601 | + <summary> |
4602 | + Returns a constraint that tests whether the actual value |
4603 | + is assignable from the type supplied as an argument. |
4604 | + </summary> |
4605 | + </member> |
4606 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.EquivalentTo(System.Collections.IEnumerable)"> |
4607 | + <summary> |
4608 | + Returns a constraint that tests whether the actual value |
4609 | + is a collection containing the same elements as the |
4610 | + collection supplied as an argument. |
4611 | + </summary> |
4612 | + </member> |
4613 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.SubsetOf(System.Collections.IEnumerable)"> |
4614 | + <summary> |
4615 | + Returns a constraint that tests whether the actual value |
4616 | + is a subset of the collection supplied as an argument. |
4617 | + </summary> |
4618 | + </member> |
4619 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.Member(System.Object)"> |
4620 | + <summary> |
4621 | + Returns a new CollectionContainsConstraint checking for the |
4622 | + presence of a particular object in the collection. |
4623 | + </summary> |
4624 | + </member> |
4625 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.Contains(System.Object)"> |
4626 | + <summary> |
4627 | + Returns a new CollectionContainsConstraint checking for the |
4628 | + presence of a particular object in the collection. |
4629 | + </summary> |
4630 | + </member> |
4631 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.Contains(System.String)"> |
4632 | + <summary> |
4633 | + Returns a new ContainsConstraint. This constraint |
4634 | + will, in turn, make use of the appropriate second-level |
4635 | + constraint, depending on the type of the actual argument. |
4636 | + This overload is only used if the item sought is a string, |
4637 | + since any other type implies that we are looking for a |
4638 | + collection member. |
4639 | + </summary> |
4640 | + </member> |
4641 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.StringContaining(System.String)"> |
4642 | + <summary> |
4643 | + Returns a constraint that succeeds if the actual |
4644 | + value contains the substring supplied as an argument. |
4645 | + </summary> |
4646 | + </member> |
4647 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.ContainsSubstring(System.String)"> |
4648 | + <summary> |
4649 | + Returns a constraint that succeeds if the actual |
4650 | + value contains the substring supplied as an argument. |
4651 | + </summary> |
4652 | + </member> |
4653 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.StartsWith(System.String)"> |
4654 | + <summary> |
4655 | + Returns a constraint that succeeds if the actual |
4656 | + value starts with the substring supplied as an argument. |
4657 | + </summary> |
4658 | + </member> |
4659 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.StringStarting(System.String)"> |
4660 | + <summary> |
4661 | + Returns a constraint that succeeds if the actual |
4662 | + value starts with the substring supplied as an argument. |
4663 | + </summary> |
4664 | + </member> |
4665 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.EndsWith(System.String)"> |
4666 | + <summary> |
4667 | + Returns a constraint that succeeds if the actual |
4668 | + value ends with the substring supplied as an argument. |
4669 | + </summary> |
4670 | + </member> |
4671 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.StringEnding(System.String)"> |
4672 | + <summary> |
4673 | + Returns a constraint that succeeds if the actual |
4674 | + value ends with the substring supplied as an argument. |
4675 | + </summary> |
4676 | + </member> |
4677 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.Matches(System.String)"> |
4678 | + <summary> |
4679 | + Returns a constraint that succeeds if the actual |
4680 | + value matches the Regex pattern supplied as an argument. |
4681 | + </summary> |
4682 | + </member> |
4683 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.StringMatching(System.String)"> |
4684 | + <summary> |
4685 | + Returns a constraint that succeeds if the actual |
4686 | + value matches the Regex pattern supplied as an argument. |
4687 | + </summary> |
4688 | + </member> |
4689 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.SamePath(System.String)"> |
4690 | + <summary> |
4691 | + Returns a constraint that tests whether the path provided |
4692 | + is the same as an expected path after canonicalization. |
4693 | + </summary> |
4694 | + </member> |
4695 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.SamePathOrUnder(System.String)"> |
4696 | + <summary> |
4697 | + Returns a constraint that tests whether the path provided |
4698 | + is the same path or under an expected path after canonicalization. |
4699 | + </summary> |
4700 | + </member> |
4701 | + <member name="M:NUnit.Framework.Constraints.ConstraintExpression.InRange(System.IComparable,System.IComparable)"> |
4702 | + <summary> |
4703 | + Returns a constraint that tests whether the actual value falls |
4704 | + within a specified range. |
4705 | + </summary> |
4706 | + </member> |
4707 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.Not"> |
4708 | + <summary> |
4709 | + Returns a ConstraintExpression that negates any |
4710 | + following constraint. |
4711 | + </summary> |
4712 | + </member> |
4713 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.No"> |
4714 | + <summary> |
4715 | + Returns a ConstraintExpression that negates any |
4716 | + following constraint. |
4717 | + </summary> |
4718 | + </member> |
4719 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.All"> |
4720 | + <summary> |
4721 | + Returns a ConstraintExpression, which will apply |
4722 | + the following constraint to all members of a collection, |
4723 | + succeeding if all of them succeed. |
4724 | + </summary> |
4725 | + </member> |
4726 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.Some"> |
4727 | + <summary> |
4728 | + Returns a ConstraintExpression, which will apply |
4729 | + the following constraint to all members of a collection, |
4730 | + succeeding if at least one of them succeeds. |
4731 | + </summary> |
4732 | + </member> |
4733 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.None"> |
4734 | + <summary> |
4735 | + Returns a ConstraintExpression, which will apply |
4736 | + the following constraint to all members of a collection, |
4737 | + succeeding if all of them fail. |
4738 | + </summary> |
4739 | + </member> |
4740 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.Length"> |
4741 | + <summary> |
4742 | + Returns a new ConstraintExpression, which will apply the following |
4743 | + constraint to the Length property of the object being tested. |
4744 | + </summary> |
4745 | + </member> |
4746 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.Count"> |
4747 | + <summary> |
4748 | + Returns a new ConstraintExpression, which will apply the following |
4749 | + constraint to the Count property of the object being tested. |
4750 | + </summary> |
4751 | + </member> |
4752 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.Message"> |
4753 | + <summary> |
4754 | + Returns a new ConstraintExpression, which will apply the following |
4755 | + constraint to the Message property of the object being tested. |
4756 | + </summary> |
4757 | + </member> |
4758 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.InnerException"> |
4759 | + <summary> |
4760 | + Returns a new ConstraintExpression, which will apply the following |
4761 | + constraint to the InnerException property of the object being tested. |
4762 | + </summary> |
4763 | + </member> |
4764 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.With"> |
4765 | + <summary> |
4766 | + With is currently a NOP - reserved for future use. |
4767 | + </summary> |
4768 | + </member> |
4769 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.Null"> |
4770 | + <summary> |
4771 | + Returns a constraint that tests for null |
4772 | + </summary> |
4773 | + </member> |
4774 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.True"> |
4775 | + <summary> |
4776 | + Returns a constraint that tests for True |
4777 | + </summary> |
4778 | + </member> |
4779 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.False"> |
4780 | + <summary> |
4781 | + Returns a constraint that tests for False |
4782 | + </summary> |
4783 | + </member> |
4784 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.NaN"> |
4785 | + <summary> |
4786 | + Returns a constraint that tests for NaN |
4787 | + </summary> |
4788 | + </member> |
4789 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.Empty"> |
4790 | + <summary> |
4791 | + Returns a constraint that tests for empty |
4792 | + </summary> |
4793 | + </member> |
4794 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.Unique"> |
4795 | + <summary> |
4796 | + Returns a constraint that tests whether a collection |
4797 | + contains all unique items. |
4798 | + </summary> |
4799 | + </member> |
4800 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.BinarySerializable"> |
4801 | + <summary> |
4802 | + Returns a constraint that tests whether an object graph is serializable in binary format. |
4803 | + </summary> |
4804 | + </member> |
4805 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.XmlSerializable"> |
4806 | + <summary> |
4807 | + Returns a constraint that tests whether an object graph is serializable in xml format. |
4808 | + </summary> |
4809 | + </member> |
4810 | + <member name="P:NUnit.Framework.Constraints.ConstraintExpression.Ordered"> |
4811 | + <summary> |
4812 | + Returns a constraint that tests whether a collection is ordered |
4813 | + </summary> |
4814 | + </member> |
4815 | + <member name="T:NUnit.Framework.Constraints.BinarySerializableConstraint"> |
4816 | + <summary> |
4817 | + BinarySerializableConstraint tests whether |
4818 | + an object is serializable in binary format. |
4819 | + </summary> |
4820 | + </member> |
4821 | + <member name="M:NUnit.Framework.Constraints.BinarySerializableConstraint.Matches(System.Object)"> |
4822 | + <summary> |
4823 | + Test whether the constraint is satisfied by a given value |
4824 | + </summary> |
4825 | + <param name="actual">The value to be tested</param> |
4826 | + <returns>True for success, false for failure</returns> |
4827 | + </member> |
4828 | + <member name="M:NUnit.Framework.Constraints.BinarySerializableConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
4829 | + <summary> |
4830 | + Write the constraint description to a MessageWriter |
4831 | + </summary> |
4832 | + <param name="writer">The writer on which the description is displayed</param> |
4833 | + </member> |
4834 | + <member name="M:NUnit.Framework.Constraints.BinarySerializableConstraint.WriteActualValueTo(NUnit.Framework.Constraints.MessageWriter)"> |
4835 | + <summary> |
4836 | + Write the actual value for a failing constraint test to a |
4837 | + MessageWriter. The default implementation simply writes |
4838 | + the raw value of actual, leaving it to the writer to |
4839 | + perform any formatting. |
4840 | + </summary> |
4841 | + <param name="writer">The writer on which the actual value is displayed</param> |
4842 | + </member> |
4843 | + <member name="M:NUnit.Framework.Constraints.BinarySerializableConstraint.ToString"> |
4844 | + <summary> |
4845 | + Returns the string representation |
4846 | + </summary> |
4847 | + </member> |
4848 | + <member name="T:NUnit.Framework.Constraints.XmlSerializableConstraint"> |
4849 | + <summary> |
4850 | + BinarySerializableConstraint tests whether |
4851 | + an object is serializable in binary format. |
4852 | + </summary> |
4853 | + </member> |
4854 | + <member name="M:NUnit.Framework.Constraints.XmlSerializableConstraint.Matches(System.Object)"> |
4855 | + <summary> |
4856 | + Test whether the constraint is satisfied by a given value |
4857 | + </summary> |
4858 | + <param name="actual">The value to be tested</param> |
4859 | + <returns>True for success, false for failure</returns> |
4860 | + </member> |
4861 | + <member name="M:NUnit.Framework.Constraints.XmlSerializableConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
4862 | + <summary> |
4863 | + Write the constraint description to a MessageWriter |
4864 | + </summary> |
4865 | + <param name="writer">The writer on which the description is displayed</param> |
4866 | + </member> |
4867 | + <member name="M:NUnit.Framework.Constraints.XmlSerializableConstraint.WriteActualValueTo(NUnit.Framework.Constraints.MessageWriter)"> |
4868 | + <summary> |
4869 | + Write the actual value for a failing constraint test to a |
4870 | + MessageWriter. The default implementation simply writes |
4871 | + the raw value of actual, leaving it to the writer to |
4872 | + perform any formatting. |
4873 | + </summary> |
4874 | + <param name="writer">The writer on which the actual value is displayed</param> |
4875 | + </member> |
4876 | + <member name="M:NUnit.Framework.Constraints.XmlSerializableConstraint.ToString"> |
4877 | + <summary> |
4878 | + Returns the string representation of this constraint |
4879 | + </summary> |
4880 | + </member> |
4881 | + <member name="T:NUnit.Framework.Constraints.BasicConstraint"> |
4882 | + <summary> |
4883 | + BasicConstraint is the abstract base for constraints that |
4884 | + perform a simple comparison to a constant value. |
4885 | + </summary> |
4886 | + </member> |
4887 | + <member name="M:NUnit.Framework.Constraints.BasicConstraint.#ctor(System.Object,System.String)"> |
4888 | + <summary> |
4889 | + Initializes a new instance of the <see cref="T:BasicConstraint"/> class. |
4890 | + </summary> |
4891 | + <param name="expected">The expected.</param> |
4892 | + <param name="description">The description.</param> |
4893 | + </member> |
4894 | + <member name="M:NUnit.Framework.Constraints.BasicConstraint.Matches(System.Object)"> |
4895 | + <summary> |
4896 | + Test whether the constraint is satisfied by a given value |
4897 | + </summary> |
4898 | + <param name="actual">The value to be tested</param> |
4899 | + <returns>True for success, false for failure</returns> |
4900 | + </member> |
4901 | + <member name="M:NUnit.Framework.Constraints.BasicConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
4902 | + <summary> |
4903 | + Write the constraint description to a MessageWriter |
4904 | + </summary> |
4905 | + <param name="writer">The writer on which the description is displayed</param> |
4906 | + </member> |
4907 | + <member name="T:NUnit.Framework.Constraints.NullConstraint"> |
4908 | + <summary> |
4909 | + NullConstraint tests that the actual value is null |
4910 | + </summary> |
4911 | + </member> |
4912 | + <member name="M:NUnit.Framework.Constraints.NullConstraint.#ctor"> |
4913 | + <summary> |
4914 | + Initializes a new instance of the <see cref="T:NullConstraint"/> class. |
4915 | + </summary> |
4916 | + </member> |
4917 | + <member name="T:NUnit.Framework.Constraints.TrueConstraint"> |
4918 | + <summary> |
4919 | + TrueConstraint tests that the actual value is true |
4920 | + </summary> |
4921 | + </member> |
4922 | + <member name="M:NUnit.Framework.Constraints.TrueConstraint.#ctor"> |
4923 | + <summary> |
4924 | + Initializes a new instance of the <see cref="T:TrueConstraint"/> class. |
4925 | + </summary> |
4926 | + </member> |
4927 | + <member name="T:NUnit.Framework.Constraints.FalseConstraint"> |
4928 | + <summary> |
4929 | + FalseConstraint tests that the actual value is false |
4930 | + </summary> |
4931 | + </member> |
4932 | + <member name="M:NUnit.Framework.Constraints.FalseConstraint.#ctor"> |
4933 | + <summary> |
4934 | + Initializes a new instance of the <see cref="T:FalseConstraint"/> class. |
4935 | + </summary> |
4936 | + </member> |
4937 | + <member name="T:NUnit.Framework.Constraints.NaNConstraint"> |
4938 | + <summary> |
4939 | + NaNConstraint tests that the actual value is a double or float NaN |
4940 | + </summary> |
4941 | + </member> |
4942 | + <member name="M:NUnit.Framework.Constraints.NaNConstraint.Matches(System.Object)"> |
4943 | + <summary> |
4944 | + Test that the actual value is an NaN |
4945 | + </summary> |
4946 | + <param name="actual"></param> |
4947 | + <returns></returns> |
4948 | + </member> |
4949 | + <member name="M:NUnit.Framework.Constraints.NaNConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
4950 | + <summary> |
4951 | + Write the constraint description to a specified writer |
4952 | + </summary> |
4953 | + <param name="writer"></param> |
4954 | + </member> |
4955 | + <member name="T:NUnit.Framework.Constraints.AttributeExistsConstraint"> |
4956 | + <summary> |
4957 | + AttributeExistsConstraint tests for the presence of a |
4958 | + specified attribute on a Type. |
4959 | + </summary> |
4960 | + </member> |
4961 | + <member name="M:NUnit.Framework.Constraints.AttributeExistsConstraint.#ctor(System.Type)"> |
4962 | + <summary> |
4963 | + Constructs an AttributeExistsConstraint for a specific attribute Type |
4964 | + </summary> |
4965 | + <param name="type"></param> |
4966 | + </member> |
4967 | + <member name="M:NUnit.Framework.Constraints.AttributeExistsConstraint.Matches(System.Object)"> |
4968 | + <summary> |
4969 | + Tests whether the object provides the expected attribute. |
4970 | + </summary> |
4971 | + <param name="actual">A Type, MethodInfo, or other ICustomAttributeProvider</param> |
4972 | + <returns>True if the expected attribute is present, otherwise false</returns> |
4973 | + </member> |
4974 | + <member name="M:NUnit.Framework.Constraints.AttributeExistsConstraint.WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)"> |
4975 | + <summary> |
4976 | + Writes the description of the constraint to the specified writer |
4977 | + </summary> |
4978 | + </member> |
4979 | + <member name="T:NUnit.Framework.Constraints.AttributeConstraint"> |
4980 | + <summary> |
4981 | + AttributeConstraint tests that a specified attribute is present |
4982 | + on a Type or other provider and that the value of the attribute |
4983 | + satisfies some other constraint. |
4984 | + </summary> |
4985 | + </member> |
4986 | + <member name="M:NUnit.Framework.Constraints.AttributeConstraint.#ctor(System.Type,NUnit.Framework.Constraints.Constraint)"> |
4987 | + <summary> |
4988 | + Constructs an AttributeConstraint for a specified attriute |
4989 | + Type and base constraint. |
4990 | + </summary> |
4991 | + <param name="type"></param> |
4992 | + <param name="baseConstraint"></param> |
4993 | + </member> |
4994 | + <member name="M:NUnit.Framework.Constraints.AttributeConstraint.Matches(System.Object)"> |
4995 | + <summary> |
4996 | + Determines whether the Type or other provider has the |
4997 | + expected attribute and if its value matches the |
4998 | + additional constraint specified. |
4999 | + </summary> |
5000 | + </member> |
The diff has been truncated for viewing.
I tried to merge this, but stumbled across an error
When invoking wadl-sharp executable without any parameter, it gives me an error instead of a Help menu as I can see in the file Program.cs in WadlConsole
The error I get is
Unhandled Exception: System. ArgumentExcepti on: An empty file name is not valid. IO.FileSystemIn fo.CheckPath (System.String path) [0x00000] in <filename unknown>:0 IO.FileInfo. .ctor (System.String fileName) [0x00000] in <filename unknown>:0 invoke- with-check) System. IO.FileInfo: .ctor (string) .Common. WadlConverter. Convert (System.String inputFileName, System.String outputFileName, System.String rootNamespace) [0x00000] in <filename unknown>:0 GenerateCode (System.String inputFileName, System.String outputFileName, System.String rootNamespace) [0x00000] in <filename unknown>:0
at System.
at System.
at (wrapper remoting-
at LpNet.WadlSharp
at Wadl.Program.
at Wadl.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0