Test for exception on cast of null to non-nullable type.
Test for exception on cast of null to non-nullable type.

Since it was decided in #2947 that the current behaviour is desired, and should
be documented as the correct behaviour, there should be a test that checks this
behaviour continues, to avoid regression changes to it.

jhendrixMSFT/corefx,vidhya-bv/corefx-sorting,akivafr123/corefx,Ermiar/corefx,zhenlan/corefx,DnlHarvey/corefx,matthubin/corefx,benpye/corefx,khdang/corefx,ptoonen/corefx,mellinoe/corefx,jeremymeng/corefx,kkurni/corefx,josguil/corefx,rjxby/corefx,richlander/corefx,janhenke/corefx,mmitche/corefx,stone-li/corefx,the-dwyer/corefx,alphonsekurian/corefx,ericstj/corefx,comdiv/corefx,iamjasonp/corefx,Priya91/corefx-1,PatrickMcDonald/corefx,tijoytom/corefx,vs-team/corefx,krytarowski/corefx,shmao/corefx,mokchhya/corefx,krk/corefx,Priya91/corefx-1,iamjasonp/corefx,manu-silicon/corefx,BrennanConroy/corefx,shmao/corefx,nbarbettini/corefx,PatrickMcDonald/corefx,manu-silicon/corefx,manu-silicon/corefx,billwert/corefx,fgreinacher/corefx,cartermp/corefx,stormleoxia/corefx,twsouthwick/corefx,benjamin-bader/corefx,690486439/corefx,DnlHarvey/corefx,Alcaro/corefx,benpye/corefx,comdiv/corefx,Chrisboh/corefx,pallavit/corefx,Jiayili1/corefx,lggomez/corefx,fgreinacher/corefx,mazong1123/corefx,rubo/corefx,alphonsekurian/corefx,parjong/corefx,kyulee1/corefx,nchikanov/corefx,JosephTremoulet/corefx,vidhya-bv/corefx-sorting,iamjasonp/corefx,mokchhya/corefx,ViktorHofer/corefx,dhoehna/corefx,vs-team/corefx,yizhang82/corefx,kkurni/corefx,krytarowski/corefx,twsouthwick/corefx,SGuyGe/corefx,nbarbettini/corefx,stephenmichaelf/corefx,dtrebbien/corefx,richlander/corefx,janhenke/corefx,twsouthwick/corefx,pallavit/corefx,vidhya-bv/corefx-sorting,shimingsg/corefx,DnlHarvey/corefx,alexandrnikitin/corefx,rubo/corefx,jcme/corefx,shahid-pk/corefx,stone-li/corefx,shmao/corefx,matthubin/corefx,marksmeltzer/corefx,matthubin/corefx,nbarbettini/corefx,ericstj/corefx,stone-li/corefx,shmao/corefx,mellinoe/corefx,kkurni/corefx,rjxby/corefx,YoupHulsebos/corefx,the-dwyer/corefx,Petermarcu/corefx,krk/corefx,elijah6/corefx,jeremymeng/corefx,mmitche/corefx,shimingsg/corefx,adamralph/corefx,benjamin-bader/corefx,wtgodbe/corefx,cartermp/corefx,yizhang82/corefx,tstringer/corefx,nbarbettini/corefx,axelheer/corefx,krk/corefx,andyhebear/corefx,nbarbettini/corefx,weltkante/corefx,parjong/corefx,shahid-pk/corefx,yizhang82/corefx,ravimeda/corefx,jhendrixMSFT/corefx,yizhang82/corefx,MaggieTsang/corefx,manu-silicon/corefx,bitcrazed/corefx,mokchhya/corefx,andyhebear/corefx,Alcaro/corefx,alphonsekurian/corefx,manu-silicon/corefx,seanshpark/corefx,ptoonen/corefx,mmitche/corefx,the-dwyer/corefx,bitcrazed/corefx,tijoytom/corefx,JosephTremoulet/corefx,Chrisboh/corefx,alexperovich/corefx,Priya91/corefx-1,cydhaselton/corefx,shimingsg/corefx,elijah6/corefx,shimingsg/corefx,benjamin-bader/corefx,690486439/corefx,stephenmichaelf/corefx,nchikanov/corefx,stone-li/corefx,jlin177/corefx,SGuyGe/corefx,dhoehna/corefx,Jiayili1/corefx,ravimeda/corefx,dotnet-bot/corefx,n1ghtmare/corefx,vs-team/corefx,alexandrnikitin/corefx,mafiya69/corefx,alphonsekurian/corefx,mellinoe/corefx,dsplaisted/corefx,rubo/corefx,pallavit/corefx,ViktorHofer/corefx,ericstj/corefx,cartermp/corefx,josguil/corefx,shimingsg/corefx,benjamin-bader/corefx,cydhaselton/corefx,lggomez/corefx,pgavlin/corefx,huanjie/corefx,uhaciogullari/corefx,DnlHarvey/corefx,janhenke/corefx,manu-silicon/corefx,lggomez/corefx,SGuyGe/corefx,billwert/corefx,pallavit/corefx,ViktorHofer/corefx,twsouthwick/corefx,Chrisboh/corefx,jcme/corefx,zmaruo/corefx,heXelium/corefx,shrutigarg/corefx,MaggieTsang/corefx,marksmeltzer/corefx,stephenmichaelf/corefx,Chrisboh/corefx,zhenlan/corefx,jhendrixMSFT/corefx,nchikanov/corefx,tijoytom/corefx,n1ghtmare/corefx,twsouthwick/corefx,benpye/corefx,akivafr123/corefx,seanshpark/corefx,shahid-pk/corefx,pallavit/corefx,690486439/corefx,uhaciogullari/corefx,marksmeltzer/corefx,alexperovich/corefx,dtrebbien/corefx,cydhaselton/corefx,nchikanov/corefx,Alcaro/corefx,marksmeltzer/corefx,gregg-miskelly/corefx,mafiya69/corefx,rahku/corefx,ellismg/corefx,Ermiar/corefx,the-dwyer/corefx,matthubin/corefx,parjong/corefx,shimingsg/corefx,rahku/corefx,benjamin-bader/corefx,Yanjing123/corefx,stone-li/corefx,Priya91/corefx-1,seanshpark/corefx,dotnet-bot/corefx,rahku/corefx,Petermarcu/corefx,seanshpark/corefx,janhenke/corefx,MaggieTsang/corefx,twsouthwick/corefx,n1ghtmare/corefx,huanjie/corefx,seanshpark/corefx,khdang/corefx,alexperovich/corefx,tijoytom/corefx,josguil/corefx,marksmeltzer/corefx,mafiya69/corefx,Alcaro/corefx,richlander/corefx,vidhya-bv/corefx-sorting,josguil/corefx,billwert/corefx,iamjasonp/corefx,ericstj/corefx,nbarbettini/corefx,JosephTremoulet/corefx,dsplaisted/corefx,ravimeda/corefx,krk/corefx,krk/corefx,shmao/corefx,Chrisboh/corefx,DnlHarvey/corefx,the-dwyer/corefx,jlin177/corefx,cydhaselton/corefx,stormleoxia/corefx,adamralph/corefx,kkurni/corefx,nchikanov/corefx,pgavlin/corefx,jhendrixMSFT/corefx,huanjie/corefx,billwert/corefx,jhendrixMSFT/corefx,DnlHarvey/corefx,akivafr123/corefx,wtgodbe/corefx,gkhanna79/corefx,rajansingh10/corefx,zhenlan/corefx,s0ne0me/corefx,benpye/corefx,mafiya69/corefx,pgavlin/corefx,zhenlan/corefx,rjxby/corefx,Petermarcu/corefx,MaggieTsang/corefx,JosephTremoulet/corefx,wtgodbe/corefx,parjong/corefx,billwert/corefx,heXelium/corefx,Ermiar/corefx,mazong1123/corefx,BrennanConroy/corefx,alexandrnikitin/corefx,mokchhya/corefx,iamjasonp/corefx,SGuyGe/corefx,marksmeltzer/corefx,khdang/corefx,n1ghtmare/corefx,gkhanna79/corefx,elijah6/corefx,kkurni/corefx,rjxby/corefx,ptoonen/corefx,gkhanna79/corefx,bitcrazed/corefx,PatrickMcDonald/corefx,krytarowski/corefx,stephenmichaelf/corefx,alexperovich/corefx,elijah6/corefx,nchikanov/corefx,wtgodbe/corefx,axelheer/corefx,nchikanov/corefx,shrutigarg/corefx,richlander/corefx,shrutigarg/corefx,jcme/corefx,billwert/corefx,YoupHulsebos/corefx,mokchhya/corefx,fgreinacher/corefx,shahid-pk/corefx,axelheer/corefx,andyhebear/corefx,mellinoe/corefx,Yanjing123/corefx,seanshpark/corefx,YoupHulsebos/corefx,krk/corefx,MaggieTsang/corefx,tstringer/corefx,gregg-miskelly/corefx,iamjasonp/corefx,kyulee1/corefx,marksmeltzer/corefx,wtgodbe/corefx,comdiv/corefx,weltkante/corefx,mazong1123/corefx,richlander/corefx,cydhaselton/corefx,Ermiar/corefx,mmitche/corefx,JosephTremoulet/corefx,cydhaselton/corefx,rjxby/corefx,khdang/corefx,fgreinacher/corefx,dotnet-bot/corefx,krytarowski/corefx,dotnet-bot/corefx,PatrickMcDonald/corefx,BrennanConroy/corefx,iamjasonp/corefx,690486439/corefx,cydhaselton/corefx,adamralph/corefx,ravimeda/corefx,rahku/corefx,vs-team/corefx,Yanjing123/corefx,tstringer/corefx,stone-li/corefx,mafiya69/corefx,gkhanna79/corefx,mmitche/corefx,rajansingh10/corefx,janhenke/corefx,elijah6/corefx,s0ne0me/corefx,wtgodbe/corefx,Ermiar/corefx,rahku/corefx,stormleoxia/corefx,zmaruo/corefx,stephenmichaelf/corefx,krytarowski/corefx,MaggieTsang/corefx,krytarowski/corefx,rjxby/corefx,ellismg/corefx,mmitche/corefx,rahku/corefx,gkhanna79/corefx,kyulee1/corefx,rubo/corefx,s0ne0me/corefx,PatrickMcDonald/corefx,mafiya69/corefx,Jiayili1/corefx,Yanjing123/corefx,pallavit/corefx,SGuyGe/corefx,Petermarcu/corefx,yizhang82/corefx,rubo/corefx,rjxby/corefx,alexandrnikitin/corefx,mazong1123/corefx,rajansingh10/corefx,Yanjing123/corefx,shmao/corefx,mellinoe/corefx,heXelium/corefx,benpye/corefx,ericstj/corefx,gkhanna79/corefx,stone-li/corefx,weltkante/corefx,JosephTremoulet/corefx,tstringer/corefx,benpye/corefx,shahid-pk/corefx,tijoytom/corefx,jeremymeng/corefx,the-dwyer/corefx,JosephTremoulet/corefx,axelheer/corefx,tstringer/corefx,ravimeda/corefx,seanshpark/corefx,lggomez/corefx,mazong1123/corefx,yizhang82/corefx,ericstj/corefx,dotnet-bot/corefx,weltkante/corefx,vidhya-bv/corefx-sorting,alphonsekurian/corefx,Jiayili1/corefx,alexperovich/corefx,parjong/corefx,jhendrixMSFT/corefx,ellismg/corefx,shahid-pk/corefx,shmao/corefx,ravimeda/corefx,lggomez/corefx,yizhang82/corefx,YoupHulsebos/corefx,wtgodbe/corefx,alexperovich/corefx,Priya91/corefx-1,dhoehna/corefx,manu-silicon/corefx,richlander/corefx,gkhanna79/corefx,weltkante/corefx,alphonsekurian/corefx,Jiayili1/corefx,n1ghtmare/corefx,weltkante/corefx,josguil/corefx,jeremymeng/corefx,Chrisboh/corefx,josguil/corefx,MaggieTsang/corefx,dtrebbien/corefx,YoupHulsebos/corefx,jlin177/corefx,janhenke/corefx,dsplaisted/corefx,kkurni/corefx,uhaciogullari/corefx,shrutigarg/corefx,khdang/corefx,ptoonen/corefx,tijoytom/corefx,krk/corefx,jlin177/corefx,YoupHulsebos/corefx,jcme/corefx,ViktorHofer/corefx,ellismg/corefx,mokchhya/corefx,gregg-miskelly/corefx,dhoehna/corefx,Petermarcu/corefx,alphonsekurian/corefx,s0ne0me/corefx,alexandrnikitin/corefx,mazong1123/corefx,axelheer/corefx,heXelium/corefx,stephenmichaelf/corefx,weltkante/corefx,YoupHulsebos/corefx,dhoehna/corefx,parjong/corefx,jhendrixMSFT/corefx,andyhebear/corefx,dtrebbien/corefx,jcme/corefx,rajansingh10/corefx,akivafr123/corefx,lggomez/corefx,mazong1123/corefx,axelheer/corefx,richlander/corefx,the-dwyer/corefx,ellismg/corefx,ptoonen/corefx,elijah6/corefx,akivafr123/corefx,jlin177/corefx,uhaciogullari/corefx,tijoytom/corefx,ptoonen/corefx,dhoehna/corefx,lggomez/corefx,jlin177/corefx,elijah6/corefx,ViktorHofer/corefx,cartermp/corefx,gregg-miskelly/corefx,Ermiar/corefx,bitcrazed/corefx,Petermarcu/corefx,jeremymeng/corefx,zhenlan/corefx,nbarbettini/corefx,rahku/corefx,ellismg/corefx,zhenlan/corefx,comdiv/corefx,zmaruo/corefx,cartermp/corefx,dotnet-bot/corefx,stormleoxia/corefx,jcme/corefx,Jiayili1/corefx,ericstj/corefx,khdang/corefx,kyulee1/corefx,pgavlin/corefx,stephenmichaelf/corefx,shimingsg/corefx,Ermiar/corefx,DnlHarvey/corefx,benjamin-bader/corefx,690486439/corefx,Priya91/corefx-1,zhenlan/corefx,mellinoe/corefx,dhoehna/corefx,huanjie/corefx,ravimeda/corefx,alexperovich/corefx,zmaruo/corefx,parjong/corefx,cartermp/corefx,Jiayili1/corefx,tstringer/corefx,ptoonen/corefx,Petermarcu/corefx,krytarowski/corefx,billwert/corefx,mmitche/corefx,ViktorHofer/corefx,jlin177/corefx,twsouthwick/corefx,SGuyGe/corefx,bitcrazed/corefx,ViktorHofer/corefx,dotnet-bot/corefx