我是c#
編程新手。可能有人請幫助我瞭解如何進行第二次測試添加到這個代碼:add test to splint method
if (item.CalcInsor_Desc != null)
{
string[] CalcInsor_Desc = item.CalcInsor_Desc.ToString().Split('.');
schema2.CalcInsonorisation_TypeCode = CalcInsor_Desc[0];
schema2.CalcInsonorisation_Desc = CalcInsor_Desc[1];
}
它ruturn例外「System.IndexOutOfRangeException:索引是該數組的範圍之外」的情況下CalcInsonorisation_Desc爲空。