Пример #1
0
        public static void Cca3Test()
        {
            var listCca2         = Utils.GetEnum <Cca3>();
            var listCca3Expected = RequestToUri.GetValueWithKey("cca3");

            Utils.PrintResut(listCca3Expected);

            Assert.AreEqual(listCca3Expected.Values, listCca2);
        }
Пример #2
0
        public static void CiocTest()
        {
            var listCca2         = Utils.GetEnum <Cioc>();
            var listCiocExpected = RequestToUri.GetValueWithKey("cioc").Where(keys => keys.Value != "");

            Utils.PrintResut(listCiocExpected);

            var listExpected = listCiocExpected.Where(keys => keys.Value != "").Select(keys => keys.Value).ToList();

            Assert.AreEqual(listExpected, listCca2);
        }
Пример #3
0
        public static void Ccn3Test()
        {
            var listCcn3enum = Enum.GetValues(typeof(Ccn3))
                               .Cast <Ccn3>()
                               .Select(v => ((int)v).ToString("000"))
                               .ToList();
            var listCcn3Expected = RequestToUri.GetValueWithKey("ccn3").Where(keys => keys.Value != "");

            Utils.PrintResut(listCcn3Expected, true);

            var listExpected = listCcn3Expected.Where(keys => keys.Value != "").Select(keys => keys.Value).ToList();

            listExpected.Sort();

            Assert.AreEqual(listExpected, listCcn3enum);
        }