コード例 #1
0
        public void CreateInstance_succeeds_for_delegate( )
        {
            var creator = InstanceCreator.ForDelegate(() => new InstantiableStruct( ));

            TestCreator(creator);
        }
コード例 #2
0
        public void CreateInstance_succeeds_for_default_class_constructor( )
        {
            var creator = InstanceCreator.ForType <InstantiableClass>( );

            TestCreator(creator);
        }