public void MatchNestedTypeReferenceTest()
{
const string typeNamespace = "SomeNamespace";
const string typeName = "SomeType";
const string typeNestedName = "SomeNestedType";
var declaringType1 = new TypeReference(CreateAssemblyReference(), typeNamespace, typeName);
var declaringType2 = new TypeReference(CreateAssemblyReference(), typeNamespace, typeName);
var type1 = new TypeReference(declaringType1, null, typeNestedName);
var type2 = new TypeReference(declaringType2, null, typeNestedName);
var type3 = new TypeReference(CreateAssemblyReference(), null, typeNestedName);
Assert.IsTrue(_comparer.MatchTypes(type1, type2));
Assert.IsFalse(_comparer.MatchTypes(type1, type3));
}