示例#1
0
        public void should_throw_an_argument_null_exception_for_type_parameter_with_paramname_set()
        {
            var container = new Container();

            try
            {
                container.RegisterForType(typeof(string), null);
            }
            catch (ArgumentNullException ex)
            {
                ex.ParamName.ShouldBeEqualTo("type");
            }
        }
示例#2
0
 public void should_throw_an_argument_null_exception_for_type_parameter()
 {
     var container = new Container();
     container.RegisterForType(typeof(string), null);
 }