Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public void TestConstructorWithWrongName()
 {
     var assembly = new Assembly(@"not a real path");
     assembly.FindTypes().ToList();
 }
Exemplo n.º 3
0
 private bool TypeExists(string typeName)
 {
     var assembly = new Assembly(this.SampleAssemblyPath);
     return assembly.FindTypes().Select(t => t.Name).Contains(typeName);
 }