public void GetKeysParamsIEnumerableMixed()
        {
            var listg = new List <Guid>
            {
                g1,
                g2
            };
            var listkg = new List <KeyGuid>
            {
                kg1,
                kg2
            };
            var liststr = new List <string>
            {
                str1,
                str2
            };
            var list = new List <object>
            {
                g1,
                kg1,
                doft0,
                str1
            };

            Assert.Equal(PKHelper.GetKeys(list, listg, listkg, liststr).Length, 7);
        }
        public void GetKeysParamsIEnumerableString()
        {
            var list = new List <string>
            {
                str1,
                str2
            };

            Assert.Equal(PKHelper.GetKeys(list, list).Length, 2);
        }
        public void GetKeysSimpleIEnumerableDataObject()
        {
            var list = new List <DataObjectForTest>
            {
                doft1,
                doft2
            };

            Assert.Equal(PKHelper.GetKeys(list).Length, 2);
        }
        public void GetKeysParamsIEnumerableKeyGuid()
        {
            var list = new List <KeyGuid>
            {
                kg1,
                kg2
            };

            Assert.Equal(PKHelper.GetKeys(list, list).Length, 2);
        }
        public void GetKeysSimpleIEnumerableGuid()
        {
            var list = new List <Guid>
            {
                g1,
                g2
            };

            Assert.Equal(PKHelper.GetKeys(list).Length, 2);
        }
        public void GetKeysParamsIEnumerableObject()
        {
            var list = new List <object>
            {
                g1,
                kg1,
                doft0,
                str1
            };

            Assert.Equal(PKHelper.GetKeys(list, list).Length, 4);
        }
        public void GetKeysIEnumerableIEnumerableMixedWithSimple()
        {
            var listg = new List <Guid>
            {
                g1,
                g2
            };
            var listlistg = new List <List <Guid> >
            {
                listg,
                listg
            };

            var listkg = new List <KeyGuid>
            {
                kg1,
                kg2
            };
            var listlistkg = new List <List <KeyGuid> >
            {
                listkg,
                listkg
            };

            var liststr = new List <string>
            {
                str1,
                str2
            };
            var listliststr = new List <List <string> >
            {
                liststr,
                liststr
            };

            var list = new List <object>
            {
                g1,
                kg1,
                doft0,
                str1
            };
            var listlist = new List <List <object> >
            {
                list,
                list
            };

            Assert.Equal(PKHelper.GetKeys(listlist, listlistg, listlistkg, listliststr, kg1, g1, str1, doft0).Length, 7);
        }
 public void GetKeysSimpleParamsDataObject()
 {
     Assert.Equal(PKHelper.GetKeys(doft1, doft2).Length, 2);
 }
 public void GetKeysSimpleParamsGuid()
 {
     Assert.Equal(PKHelper.GetKeys(g1, g2).Length, 2);
 }
 public void GetKeysSimpleParamsString()
 {
     Assert.Equal(PKHelper.GetKeys(str1, str2).Length, 2);
 }
 public void GetKeysSimpleParamsMixed()
 {
     Assert.Equal(PKHelper.GetKeys(kg1, g1, str1, doft0).Length, 4);
 }
 public void GetKeysSimpleParamsIncorrectString()
 {
     Assert.Equal(PKHelper.GetKeys("sssssssss", "123", str1, null).Length, 1);
 }
 public void GetKeysSimpleParamsNullDataObject()
 {
     Assert.Equal(PKHelper.GetKeys(null, null, null, doft0).Length, 1);
 }
 public void GetKeysSimpleParamsNullString()
 {
     Assert.Equal(PKHelper.GetKeys(null, null, str1, null).Length, 1);
 }
 public void GetKeysSimpleParamsNullGuid()
 {
     Assert.Equal(PKHelper.GetKeys(null, g1, null, null).Length, 1);
 }