コード例 #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);
        }
コード例 #2
0
 public void Should_return_MissingAssembly_when_no_assemblies_loaded()
 {
     var loader = new StaticAssemblyLoader();
     loader.Load(new AssemblyName("Pencil.dll")).IsMissing.ShouldBe(true);
 }