Пример #1
0
 private bool TypeExists(string typeName, MemberType type, params System.Type[] expectedAttributes)
 {
     var assembly = new Assembly(this.SampleAssemblyPath);
     return assembly.FindTypes(type, expectedAttributes).Select(t => t.Name).Contains(typeName);
 }
Пример #2
0
 public void TestConstructorWithWrongName()
 {
     var assembly = new Assembly(@"not a real path");
     assembly.FindTypes().ToList();
 }
Пример #3
0
 private bool TypeExists(string typeName)
 {
     var assembly = new Assembly(this.SampleAssemblyPath);
     return assembly.FindTypes().Select(t => t.Name).Contains(typeName);
 }