Add tests for Array.CreateInstance (#11498)
Add tests for Array.CreateInstance (#11498)

* Cleanup CreateInstance tests
- Extract test data to a common reproducable helper
- Make VerifyArray work for arrays of pointers and arrays with non-zero
lower bounds

* Add CreateInstance tests
- All primitives
- Arrays
- Pointers
- Classes, structs, interfaces, enums
- Recursively open generic types
- Tests for pointer array throwing NotSupportedException
mazong1123/corefx,ptoonen/corefx,cydhaselton/corefx,stone-li/corefx,jlin177/corefx,wtgodbe/corefx,Petermarcu/corefx,stephenmichaelf/corefx,rahku/corefx,nbarbettini/corefx,the-dwyer/corefx,shimingsg/corefx,rubo/corefx,billwert/corefx,shimingsg/corefx,elijah6/corefx,marksmeltzer/corefx,MaggieTsang/corefx,DnlHarvey/corefx,wtgodbe/corefx,jlin177/corefx,stephenmichaelf/corefx,the-dwyer/corefx,seanshpark/corefx,stone-li/corefx,ViktorHofer/corefx,lggomez/corefx,nchikanov/corefx,shmao/corefx,Petermarcu/corefx,mazong1123/corefx,zhenlan/corefx,mmitche/corefx,YoupHulsebos/corefx,jlin177/corefx,krk/corefx,marksmeltzer/corefx,stone-li/corefx,billwert/corefx,JosephTremoulet/corefx,nchikanov/corefx,MaggieTsang/corefx,gkhanna79/corefx,Ermiar/corefx,Jiayili1/corefx,ericstj/corefx,seanshpark/corefx,lggomez/corefx,richlander/corefx,stone-li/corefx,dotnet-bot/corefx,zhenlan/corefx,ravimeda/corefx,marksmeltzer/corefx,krytarowski/corefx,mmitche/corefx,alexperovich/corefx,Ermiar/corefx,cydhaselton/corefx,parjong/corefx,YoupHulsebos/corefx,mmitche/corefx,weltkante/corefx,weltkante/corefx,nbarbettini/corefx,MaggieTsang/corefx,dhoehna/corefx,rjxby/corefx,nchikanov/corefx,BrennanConroy/corefx,yizhang82/corefx,ptoonen/corefx,wtgodbe/corefx,ravimeda/corefx,krk/corefx,shmao/corefx,mmitche/corefx,nbarbettini/corefx,rjxby/corefx,mazong1123/corefx,krytarowski/corefx,stephenmichaelf/corefx,nchikanov/corefx,fgreinacher/corefx,rahku/corefx,twsouthwick/corefx,marksmeltzer/corefx,elijah6/corefx,krytarowski/corefx,alexperovich/corefx,dhoehna/corefx,mazong1123/corefx,gkhanna79/corefx,billwert/corefx,rjxby/corefx,Petermarcu/corefx,tijoytom/corefx,dotnet-bot/corefx,shimingsg/corefx,mmitche/corefx,marksmeltzer/corefx,jlin177/corefx,alexperovich/corefx,ravimeda/corefx,DnlHarvey/corefx,cydhaselton/corefx,Jiayili1/corefx,cydhaselton/corefx,JosephTremoulet/corefx,dotnet-bot/corefx,fgreinacher/corefx,nbarbettini/corefx,weltkante/corefx,krk/corefx,wtgodbe/corefx,yizhang82/corefx,BrennanConroy/corefx,nbarbettini/corefx,rahku/corefx,tijoytom/corefx,parjong/corefx,ptoonen/corefx,ericstj/corefx,nbarbettini/corefx,the-dwyer/corefx,alexperovich/corefx,axelheer/corefx,krk/corefx,alexperovich/corefx,weltkante/corefx,wtgodbe/corefx,cydhaselton/corefx,rjxby/corefx,rubo/corefx,ravimeda/corefx,ptoonen/corefx,lggomez/corefx,krk/corefx,Ermiar/corefx,tijoytom/corefx,Ermiar/corefx,stone-li/corefx,krytarowski/corefx,ericstj/corefx,yizhang82/corefx,YoupHulsebos/corefx,rubo/corefx,rahku/corefx,nbarbettini/corefx,YoupHulsebos/corefx,yizhang82/corefx,lggomez/corefx,seanshpark/corefx,zhenlan/corefx,weltkante/corefx,Ermiar/corefx,gkhanna79/corefx,axelheer/corefx,twsouthwick/corefx,shimingsg/corefx,richlander/corefx,parjong/corefx,the-dwyer/corefx,shmao/corefx,seanshpark/corefx,krytarowski/corefx,Petermarcu/corefx,Jiayili1/corefx,alexperovich/corefx,Petermarcu/corefx,billwert/corefx,lggomez/corefx,shmao/corefx,dhoehna/corefx,wtgodbe/corefx,twsouthwick/corefx,rahku/corefx,ericstj/corefx,YoupHulsebos/corefx,rjxby/corefx,axelheer/corefx,jlin177/corefx,the-dwyer/corefx,dotnet-bot/corefx,shmao/corefx,shimingsg/corefx,stone-li/corefx,gkhanna79/corefx,shimingsg/corefx,elijah6/corefx,BrennanConroy/corefx,yizhang82/corefx,YoupHulsebos/corefx,richlander/corefx,zhenlan/corefx,gkhanna79/corefx,ViktorHofer/corefx,rahku/corefx,jlin177/corefx,ViktorHofer/corefx,DnlHarvey/corefx,ravimeda/corefx,billwert/corefx,stephenmichaelf/corefx,marksmeltzer/corefx,richlander/corefx,fgreinacher/corefx,rjxby/corefx,twsouthwick/corefx,seanshpark/corefx,seanshpark/corefx,dhoehna/corefx,JosephTremoulet/corefx,Jiayili1/corefx,yizhang82/corefx,DnlHarvey/corefx,Ermiar/corefx,the-dwyer/corefx,tijoytom/corefx,Ermiar/corefx,twsouthwick/corefx,MaggieTsang/corefx,MaggieTsang/corefx,tijoytom/corefx,krytarowski/corefx,yizhang82/corefx,ravimeda/corefx,zhenlan/corefx,parjong/corefx,rubo/corefx,ViktorHofer/corefx,ptoonen/corefx,lggomez/corefx,axelheer/corefx,wtgodbe/corefx,zhenlan/corefx,ericstj/corefx,YoupHulsebos/corefx,mazong1123/corefx,JosephTremoulet/corefx,Jiayili1/corefx,mazong1123/corefx,shmao/corefx,billwert/corefx,mmitche/corefx,rahku/corefx,nchikanov/corefx,DnlHarvey/corefx,JosephTremoulet/corefx,dotnet-bot/corefx,gkhanna79/corefx,cydhaselton/corefx,richlander/corefx,stephenmichaelf/corefx,MaggieTsang/corefx,marksmeltzer/corefx,dhoehna/corefx,MaggieTsang/corefx,richlander/corefx,stephenmichaelf/corefx,dotnet-bot/corefx,elijah6/corefx,gkhanna79/corefx,Petermarcu/corefx,stone-li/corefx,alexperovich/corefx,JosephTremoulet/corefx,twsouthwick/corefx,parjong/corefx,Jiayili1/corefx,dhoehna/corefx,mmitche/corefx,ericstj/corefx,elijah6/corefx,ViktorHofer/corefx,elijah6/corefx,DnlHarvey/corefx,zhenlan/corefx,ViktorHofer/corefx,shmao/corefx,mazong1123/corefx,shimingsg/corefx,DnlHarvey/corefx,JosephTremoulet/corefx,krk/corefx,twsouthwick/corefx,ptoonen/corefx,ericstj/corefx,ravimeda/corefx,parjong/corefx,the-dwyer/corefx,lggomez/corefx,krytarowski/corefx,richlander/corefx,weltkante/corefx,Petermarcu/corefx,nchikanov/corefx,tijoytom/corefx,krk/corefx,weltkante/corefx,tijoytom/corefx,axelheer/corefx,cydhaselton/corefx,dotnet-bot/corefx,elijah6/corefx,seanshpark/corefx,ptoonen/corefx,Jiayili1/corefx,nchikanov/corefx,fgreinacher/corefx,stephenmichaelf/corefx,parjong/corefx,axelheer/corefx,rjxby/corefx,jlin177/corefx,ViktorHofer/corefx,billwert/corefx,dhoehna/corefx,rubo/corefx