You've already forked linux-packaging-mono
Imported Upstream version 4.2.0.179
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
This commit is contained in:
committed by
Jo Shields
parent
183bba2c9a
commit
6992685b86
@@ -7,7 +7,8 @@ LIBRARY_PACKAGE = none
|
||||
|
||||
NO_INSTALL = yes
|
||||
|
||||
LIB_MCS_FLAGS = /r:$(corlib) /r:System.dll
|
||||
LIB_REFS = System
|
||||
LIB_MCS_FLAGS = /r:$(corlib)
|
||||
TEST_MCS_FLAGS = /r:Mono.Posix.dll /r:System.dll /r:System.Core.dll
|
||||
|
||||
mono_sourcelibs_DIR = $(DESTDIR)$(mono_libdir)/mono-source-libs
|
||||
|
||||
@@ -678,7 +678,9 @@ namespace Mono.Options
|
||||
get {return this.option;}
|
||||
}
|
||||
|
||||
#pragma warning disable 618 // SecurityPermissionAttribute is obsolete
|
||||
[SecurityPermission (SecurityAction.LinkDemand, SerializationFormatter = true)]
|
||||
#pragma warning restore 618
|
||||
public override void GetObjectData (SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
base.GetObjectData (info, context);
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace MonoTests.Mono.Options
|
||||
c, v => { string ignore = v.OptionValues [0]; });
|
||||
c.Option = p [0];
|
||||
Utils.AssertException (typeof(ArgumentOutOfRangeException),
|
||||
"Argument is out of range.\nParameter name: index",
|
||||
"Specified argument was out of the range of valid values.\nParameter name: index",
|
||||
c, v => { string ignore = v.OptionValues [2]; });
|
||||
c.OptionName = "-a";
|
||||
Utils.AssertException (typeof(OptionException),
|
||||
|
||||
@@ -354,10 +354,10 @@ namespace MonoTests.Mono.Options
|
||||
p, v => { v.Parse (_("-a", "-b")); });
|
||||
Assert.AreEqual (a, "-b");
|
||||
Utils.AssertException (typeof(ArgumentNullException),
|
||||
"Argument cannot be null.\nParameter name: option",
|
||||
"Value cannot be null.\nParameter name: option",
|
||||
p, v => { v.Add ((Option) null); });
|
||||
Utils.AssertException (typeof(ArgumentNullException),
|
||||
"Argument cannot be null.\nParameter name: header",
|
||||
"Value cannot be null.\nParameter name: header",
|
||||
p, v => { v.Add ((string) null); });
|
||||
|
||||
// bad type
|
||||
@@ -374,7 +374,7 @@ namespace MonoTests.Mono.Options
|
||||
p, v => { v.Parse (_("-cz", "extra")); });
|
||||
|
||||
Utils.AssertException (typeof(ArgumentNullException),
|
||||
"Argument cannot be null.\nParameter name: action",
|
||||
"Value cannot be null.\nParameter name: action",
|
||||
p, v => { v.Add ("foo", (Action<string>) null); });
|
||||
Utils.AssertException (typeof(ArgumentException),
|
||||
"Cannot provide maxValueCount of 2 for OptionValueType.None.\nParameter name: maxValueCount",
|
||||
@@ -752,7 +752,7 @@ namespace MonoTests.Mono.Options
|
||||
Utils.AssertException (typeof(ArgumentException), "prototypes must be null!",
|
||||
p, v => { v.Add ("N|NUM=", (int n) => {}); });
|
||||
Utils.AssertException (typeof(ArgumentNullException),
|
||||
"Argument cannot be null.\nParameter name: option",
|
||||
"Value cannot be null.\nParameter name: option",
|
||||
p, v => { v.GetOptionForName (null); });
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace MonoTests.Mono.Options
|
||||
{
|
||||
object p = null;
|
||||
Utils.AssertException (typeof(ArgumentNullException),
|
||||
"Argument cannot be null.\nParameter name: prototype",
|
||||
"Value cannot be null.\nParameter name: prototype",
|
||||
p, v => { new DefaultOption (null, null); });
|
||||
Utils.AssertException (typeof(ArgumentException),
|
||||
"Cannot be the empty string.\nParameter name: prototype",
|
||||
@@ -91,7 +91,7 @@ namespace MonoTests.Mono.Options
|
||||
Utils.AssertException (null, null,
|
||||
p, v => { new DefaultOption ("a|b=", null, 2); });
|
||||
Utils.AssertException (typeof(ArgumentOutOfRangeException),
|
||||
"Argument is out of range.\nParameter name: maxValueCount",
|
||||
"Specified argument was out of the range of valid values.\nParameter name: maxValueCount",
|
||||
p, v => { new DefaultOption ("a", null, -1); });
|
||||
Utils.AssertException (typeof(ArgumentException),
|
||||
"Cannot provide maxValueCount of 0 for OptionValueType.Required or " +
|
||||
|
||||
Reference in New Issue
Block a user