public void Setup() { Assembly assembly = typeof(TestImplementation).Assembly; result = ServiceExtensions .GetServiceDeclarations(new[] { assembly }) .ToArray(); }
public void ThenAnArgumentNullExceptionIsThrown() { Assembly assembly = null; ArgumentNullException exception = Assert.Throws <ArgumentNullException>(() => ServiceExtensions.GetServiceDeclarations(assembly)); Assert.AreEqual("assembly", exception.ParamName); }