public void AddAssembly_WithAssembly_DiscoversMockServiceModuleRegistrar() { var o = new ModuleRegistrarOptions(); o.AddAssembly(this.GetType().Assembly); Assert.Contains(o.ModuleRegistrars, m => m is MockServiceModuleRegistrar); }
public void AddAssembly_WithNullAssembly_ThrowsArgumentNullException() { var o = new ModuleRegistrarOptions(); Assert.Throws <ArgumentNullException>(() => o.AddAssembly(null)); }
public void AddAssembly_WithAssembly_DoesNotThrowArgumentNullException() { var o = new ModuleRegistrarOptions(); o.AddAssembly(this.GetType().Assembly); }