public void AssembliesHaveTheSameNumberOfTypes(string supportDll, string androidXDll, bool ignoreResourceType) { using (var support = AssemblyDefinition.ReadAssembly(supportDll)) using (var androidx = AssemblyDefinition.ReadAssembly(androidXDll)) { var supportTypes = support.GetPublicTypes(ignoreResourceType).ToArray(); var androidxTypes = androidx.GetPublicTypes(ignoreResourceType).ToArray(); Assert.Equal(supportTypes.Length, androidxTypes.Length); CecilAssert.NotEqual(supportTypes, androidxTypes); } }
public void AssembliesHaveTheSameNumberOfReferences(string supportDll, string androidXDll) { using (var support = AssemblyDefinition.ReadAssembly(supportDll)) using (var androidx = AssemblyDefinition.ReadAssembly(androidXDll)) { var supportReferences = support.MainModule.AssemblyReferences.ToArray(); var androidxReferences = androidx.MainModule.AssemblyReferences.ToArray(); Assert.Equal(supportReferences.Length, androidxReferences.Length); CecilAssert.NotEqual(supportReferences, androidxReferences); } }