Skip to content

Commit e63fc2a

Browse files
committed
Fixed an issue with OptionMap test internal constructor.
1 parent b4bd6fb commit e63fc2a

File tree

4 files changed

+42
-6
lines changed

4 files changed

+42
-6
lines changed

CommandLine.sln.DotSettings.user

+1-1
Large diffs are not rendered by default.

doc/ChangeLog

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
2013-02-02 Giacomo Stelluti Scala <[email protected]>
22

33
* ParsingErrorsHandler delegate replaced by Action<HelpText>.
4+
* Fixed an issue with OptionMap test internal constructor.
45
* Version incremented to 1.9.4.211 beta.
56

67
2013-01-31 Giacomo Stelluti Scala <[email protected]>

src/libcmdline/Core/OptionMap.cs

+4-5
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,10 @@ public MutuallyExclusiveInfo(OptionInfo option)
5656
private int _count;
5757
}
5858

59-
#if !UNIT_TESTS
60-
private OptionMap(int capacity, ParserSettings settings)
61-
#else
62-
public OptionMap(int capacity, ParserSettings settings)
63-
#endif
59+
/// <summary>
60+
/// Constructor used for testing purpose.
61+
/// </summary>
62+
internal OptionMap(int capacity, ParserSettings settings)
6463
{
6564
_settings = settings;
6665

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#region License
2+
//
3+
// Command Line Library: ParsingErrorsHandler.cs
4+
//
5+
// Author:
6+
// Giacomo Stelluti Scala ([email protected])
7+
//
8+
// Copyright (C) 2005 - 2013 Giacomo Stelluti Scala
9+
//
10+
// Permission is hereby granted, free of charge, to any person obtaining a copy
11+
// of this software and associated documentation files (the "Software"), to deal
12+
// in the Software without restriction, including without limitation the rights
13+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14+
// copies of the Software, and to permit persons to whom the Software is
15+
// furnished to do so, subject to the following conditions:
16+
//
17+
// The above copyright notice and this permission notice shall be included in
18+
// all copies or substantial portions of the Software.
19+
//
20+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26+
// THE SOFTWARE.
27+
//
28+
#endregion
29+
30+
namespace CommandLine.Text
31+
{
32+
/// <summary>
33+
/// Handle parsing errors delegate.
34+
/// </summary>
35+
public delegate void ParsingErrorsHandler(HelpText current);
36+
}

0 commit comments

Comments
 (0)