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
path: root/Test
diff options
context:
space:
mode:
authorJb Evain <jb@evain.net>2019-06-21 00:06:24 +0300
committerJb Evain <jb@evain.net>2019-06-21 00:13:21 +0300
commitfebbd65254499fac9dd82a6ef3416e6f063775a9 (patch)
treee3c75ab1e0aaa89eb0de8b557080fc342956cd4a /Test
parent749710aafc99e7fb1372640472344059b75dc075 (diff)
Add support for custom attributes on generic constraints
Diffstat (limited to 'Test')
-rw-r--r--Test/Mono.Cecil.Tests/TypeTests.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Test/Mono.Cecil.Tests/TypeTests.cs b/Test/Mono.Cecil.Tests/TypeTests.cs
index 9147764..8d7f3fa 100644
--- a/Test/Mono.Cecil.Tests/TypeTests.cs
+++ b/Test/Mono.Cecil.Tests/TypeTests.cs
@@ -98,8 +98,8 @@ namespace Mono.Cecil.Tests {
Assert.IsTrue (t.HasConstraints);
Assert.AreEqual (2, t.Constraints.Count);
- Assert.AreEqual ("Zap", t.Constraints [0].FullName);
- Assert.AreEqual ("IZoom", t.Constraints [1].FullName);
+ Assert.AreEqual ("Zap", t.Constraints [0].ConstraintType.FullName);
+ Assert.AreEqual ("IZoom", t.Constraints [1].ConstraintType.FullName);
});
}
@@ -132,8 +132,8 @@ namespace Mono.Cecil.Tests {
var t2 = duel.GenericParameters [1];
var t3 = duel.GenericParameters [2];
- Assert.AreEqual (t1, t2.Constraints [0]);
- Assert.AreEqual (t2, t3.Constraints [0]);
+ Assert.AreEqual (t1, t2.Constraints [0].ConstraintType);
+ Assert.AreEqual (t2, t3.Constraints [0].ConstraintType);
});
}