Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJb Evain <jbevain@gmail.com>2011-11-07 21:09:21 +0400
committerJb Evain <jbevain@gmail.com>2011-11-07 21:09:21 +0400
commitabdf659fdf506c6981eb5dd3a09affa85bf57843 (patch)
tree40ddbab743f18cf6641a64279f51d30e2519b522 /Test/Mono.Cecil.Tests/CustomAttributesTests.cs
parent1f6385763d04e69441e464c5d20e9b70cd8fa4fc (diff)
Add test for custom attributes with a null blob
Diffstat (limited to 'Test/Mono.Cecil.Tests/CustomAttributesTests.cs')
-rw-r--r--Test/Mono.Cecil.Tests/CustomAttributesTests.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/Mono.Cecil.Tests/CustomAttributesTests.cs b/Test/Mono.Cecil.Tests/CustomAttributesTests.cs
index 6565ba6..9682dad 100644
--- a/Test/Mono.Cecil.Tests/CustomAttributesTests.cs
+++ b/Test/Mono.Cecil.Tests/CustomAttributesTests.cs
@@ -342,6 +342,14 @@ namespace Mono.Cecil.Tests {
Assert.AreEqual ("System.Collections.Generic.Dictionary`2<System.String,OpenGeneric`2<Machin,System.Int32>[,]>", type.FullName);
}
+ [TestIL ("types.il")]
+ public void EmptyBlob (ModuleDefinition module)
+ {
+ var attribute = module.GetType ("CustomAttribute");
+ Assert.AreEqual (1, attribute.CustomAttributes.Count);
+ Assert.AreEqual (0, attribute.CustomAttributes [0].ConstructorArguments.Count);
+ }
+
[Test]
public void DefineCustomAttributeFromBlob ()
{