LoadAssembly() публичный Метод

Reflects through the currently selected assembly and reflects the type tree in tvAssemblyGraph.
public LoadAssembly ( ) : TestNode
Результат TestNode
Пример #1
0
 public void LoadAssemblyWithDifferentDescription()
 {
     var expectedRootName = "Different Name";
     this.testObject = new AssemblyFetcher(this.methodVisibility, expectedRootName, this.inputAssemblies);
     var result = testObject.LoadAssembly();
     Assert.IsNotNull(result);
     Assert.IsNotEmpty(result.Nodes);
     Assert.AreEqual(expectedRootName, result.Text);
 }
Пример #2
0
 public void LoadAssemblyWithNullInInputAssembliesThrows()
 {
     this.inputAssemblies[1] = null;
     this.testObject = new AssemblyFetcher(this.methodVisibility, "HelloTest", this.inputAssemblies);
     Assert.Throws<ArgumentNullException>(() => testObject.LoadAssembly());
 }
Пример #3
0
 public void LoadAssemblyWithNonValidFilenameInInputAssembliesThrows()
 {
     this.inputAssemblies[1] = "A assembly that can't be a valid one.dll";
     this.testObject = new AssemblyFetcher(this.methodVisibility, "HelloTest", this.inputAssemblies);
     Assert.Throws<ArgumentException>(() => testObject.LoadAssembly());
 }