Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit 3fbe19b

Browse files
Merge pull request #422 from xamarin/base-conformance-decriptor
test for base conformance descriptor
2 parents 065ce8c + d8bf954 commit 3fbe19b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/tom-swifty-test/SwiftReflector/Swift4DemanglerTests.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,5 +1634,17 @@ public void TestReflectionMetadataBuiltin ()
16341634
Assert.IsNotNull (cl, "not a class");
16351635
Assert.AreEqual ("itsAFive.E2", cl.ClassName.ToFullyQualifiedName (), "wrong name");
16361636
}
1637+
1638+
[Test]
1639+
public void TestBaseConformanceDescriptor ()
1640+
{
1641+
var tld = Decomposer.Decompose ("_$sSHSQTb", false);
1642+
Assert.IsNotNull (tld, "failed decomposition");
1643+
var bcd = tld as TLBaseConformanceDescriptor;
1644+
Assert.IsNotNull (bcd, "not a conformance descriptor");
1645+
var cl = bcd.ProtocolRequirement as SwiftClassType;
1646+
Assert.IsNotNull (cl, "not a class");
1647+
Assert.AreEqual ("Swift.Equatable", cl.ClassName.ToFullyQualifiedName (), "wrong name");
1648+
}
16371649
}
16381650
}

0 commit comments

Comments
 (0)