Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public void ListUtility_ThrowIfNullOrEmpty_12()
 {
     int[] first  = { 1, 2, 3 };
     int[] second = ListUtility.ThrowIfNullOrEmpty(first, "first");
     Assert.AreSame(first, second);
 }
Exemplo n.º 3
0
 public void ListUtility_ThrowIfNullOrEmpty_8()
 {
     int[] array = null;
     ListUtility.ThrowIfNullOrEmpty(array, "array");
 }
Exemplo n.º 4
0
        public void ListUtility_ThrowIfNullOrEmpty_6()
        {
            List <int> list = null;

            ListUtility.ThrowIfNullOrEmpty(list, "list");
        }
Exemplo n.º 5
0
 public void ListUtility_ThrowIfNullOrEmpty_4()
 {
     int[] array = new int[0];
     ListUtility.ThrowIfNullOrEmpty(array, "array");
 }
Exemplo n.º 6
0
        public void ListUtility_ThrowIfNullOrEmpty_2()
        {
            List <int> list = new List <int>();

            ListUtility.ThrowIfNullOrEmpty(list, nameof(list));
        }
Exemplo n.º 7
0
        public void ListUtility_ThrowIfNullOrEmpty_1()
        {
            List <int> list = new List <int>();

            ListUtility.ThrowIfNullOrEmpty(list);
        }