예제 #1
0
        public void AddAssembly_WithAssembly_DiscoversMockServiceModuleRegistrar()
        {
            var o = new ModuleRegistrarOptions();

            o.AddAssembly(this.GetType().Assembly);

            Assert.Contains(o.ModuleRegistrars, m => m is MockServiceModuleRegistrar);
        }
예제 #2
0
        public void AddAssembly_WithNullAssembly_ThrowsArgumentNullException()
        {
            var o = new ModuleRegistrarOptions();

            Assert.Throws <ArgumentNullException>(() => o.AddAssembly(null));
        }
예제 #3
0
        public void AddAssembly_WithAssembly_DoesNotThrowArgumentNullException()
        {
            var o = new ModuleRegistrarOptions();

            o.AddAssembly(this.GetType().Assembly);
        }