public void BindToTypeWhereAssemblyDoesNotExist() { var binder = new AssemblyBinder(); binder.Assemblies.Add(this.GetType().Assembly); Assert.IsNull(binder.BindToType(typeof(Rock).Assembly.FullName, this.GetType().FullName)); }
public void BindToType() { var binder = new AssemblyBinder(); binder.Assemblies.Add(this.GetType().Assembly); Assert.AreEqual(this.GetType(), binder.BindToType(this.GetType().Assembly.FullName, this.GetType().FullName)); }