You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.47
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
parent
88ff76fe28
commit
e46a49ecf1
@@ -21,15 +21,15 @@ namespace Mono.Cecil.Tests {
|
||||
TestCSharp ("CustomAttributes.cs", module => {
|
||||
var hamster = module.GetType ("Hamster");
|
||||
|
||||
Assert.IsTrue (hamster.HasCustomAttributes);
|
||||
Assert.AreEqual (1, hamster.CustomAttributes.Count);
|
||||
Assert.IsTrue (hamster.HasCustomAttributes);
|
||||
Assert.AreEqual (1, hamster.CustomAttributes.Count);
|
||||
|
||||
var attribute = hamster.CustomAttributes [0];
|
||||
Assert.AreEqual ("System.Void FooAttribute::.ctor(System.String)",
|
||||
attribute.Constructor.FullName);
|
||||
var attribute = hamster.CustomAttributes [0];
|
||||
Assert.AreEqual ("System.Void FooAttribute::.ctor(System.String)",
|
||||
attribute.Constructor.FullName);
|
||||
|
||||
Assert.IsTrue (attribute.HasConstructorArguments);
|
||||
Assert.AreEqual (1, attribute.ConstructorArguments.Count);
|
||||
Assert.IsTrue (attribute.HasConstructorArguments);
|
||||
Assert.AreEqual (1, attribute.ConstructorArguments.Count);
|
||||
|
||||
AssertArgument ("bar", attribute.ConstructorArguments [0]);
|
||||
});
|
||||
@@ -559,10 +559,10 @@ namespace Mono.Cecil.Tests {
|
||||
}
|
||||
|
||||
switch (Type.GetTypeCode (value.GetType ())) {
|
||||
case TypeCode.String:
|
||||
case System.TypeCode.String:
|
||||
signature.AppendFormat ("\"{0}\"", value);
|
||||
break;
|
||||
case TypeCode.Char:
|
||||
case System.TypeCode.Char:
|
||||
signature.AppendFormat ("'{0}'", (char) value);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user