コード例 #1
0
        public void ListUtility_ThrowIfNullOrEmpty_10()
        {
            List <int> first = new List <int> {
                1, 2, 3
            };
            List <int> second = (List <int>)ListUtility.ThrowIfNullOrEmpty(first, "first");

            Assert.AreSame(first, second);
        }
コード例 #2
0
 public void ListUtility_ThrowIfNullOrEmpty_12()
 {
     int[] first  = { 1, 2, 3 };
     int[] second = ListUtility.ThrowIfNullOrEmpty(first, "first");
     Assert.AreSame(first, second);
 }
コード例 #3
0
 public void ListUtility_ThrowIfNullOrEmpty_8()
 {
     int[] array = null;
     ListUtility.ThrowIfNullOrEmpty(array, "array");
 }
コード例 #4
0
        public void ListUtility_ThrowIfNullOrEmpty_6()
        {
            List <int> list = null;

            ListUtility.ThrowIfNullOrEmpty(list, "list");
        }
コード例 #5
0
 public void ListUtility_ThrowIfNullOrEmpty_4()
 {
     int[] array = new int[0];
     ListUtility.ThrowIfNullOrEmpty(array, "array");
 }
コード例 #6
0
        public void ListUtility_ThrowIfNullOrEmpty_2()
        {
            List <int> list = new List <int>();

            ListUtility.ThrowIfNullOrEmpty(list, nameof(list));
        }
コード例 #7
0
        public void ListUtility_ThrowIfNullOrEmpty_1()
        {
            List <int> list = new List <int>();

            ListUtility.ThrowIfNullOrEmpty(list);
        }