Esempio n. 1
0
        public void Should_remember_Registred_assemblies()
        {
            var loader = new StaticAssemblyLoader();
            var self = AssemblyLoader.GetExecutingAssembly();
            loader.Register(self);

            loader.Load(self.Name).ShouldBeSameAs(self);
        }
Esempio n. 2
0
 public void Should_return_MissingAssembly_when_no_assemblies_loaded()
 {
     var loader = new StaticAssemblyLoader();
     loader.Load(new AssemblyName("Pencil.dll")).IsMissing.ShouldBe(true);
 }