Exemplo n.º 1
0
        public void TestReplaceItemProxySet()
        {
            ACConfig TestAc = new ACConfig()
            {
                configureviop = new Configureviop()
                {
                    proxyset = new List <Proxyset>()
                }
            };
            Proxyset PS = new Proxyset()
            {
                listid    = 21,
                proxyname = "blub"
            };

            TestAc.configureviop.proxyset.Add(PS);
            List <Proxyset> list    = new List <Proxyset>();
            Proxyset        OtherPS = new Proxyset()
            {
                listid    = 21,
                proxyname = "blup"
            };

            list.Add(OtherPS);
            var what = "proxyset";

            TestAc = new TestMainProgramm().replaceitem(TestAc, list, what);
            Assert.True(TestAc.configureviop.proxyset[0].proxyname == "blup");
        }
        public void TestReplaceItemProxySet()
        {
            ACConfig TestAc = new ACConfig()
            {
                configureviop = new Configureviop()
                {
                    proxyset = new List <Proxyset>()
                }
            };
            Proxyset PS = new Proxyset()
            {
                listid    = 21,
                proxyname = "blub_-"
            };

            TestAc.configureviop.proxyset.Add(PS);
            List <Proxyset> list    = new List <Proxyset>();
            Proxyset        OtherPS = new Proxyset()
            {
                listid    = 21,
                proxyname = "blup_-"
            };

            list.Add(OtherPS);
            var what = "proxyset";

            TestAc = new TestMainProgramm().replaceitem(TestAc, list, what, new CommandOption("--blub", CommandOptionType.SingleValue), new CommandOption("--blub", CommandOptionType.SingleValue));
            Assert.True(TestAc.configureviop.proxyset[0].proxyname == "blup_-");
        }
Exemplo n.º 3
0
        public void ObjectToListProxySetNotNull()
        {
            AC = new ACConfig()
            {
                configureviop = new Configureviop()
                {
                    proxyset = new List <Proxyset>()
                }
            };
            Proxyset PS = new Proxyset()
            {
                proxyname = "testProxyname"
            };

            AC.configureviop.proxyset.Add(PS);
            testreturnConfigList = new TestOutput().objectToList(AC);
            Assert.NotEmpty(testreturnConfigList);
        }