Exemplo n.º 1
0
        public void GetOKTest()
        {
            OperatorTestEx ote = new OperatorTestEx();

            Assert.AreEqual(ote.GetOK(), "Ok", true, "isSame");
            //Assert.Fail();
        }
Exemplo n.º 2
0
        private static void FunctionTestExOperator()
        {
            OperatorTestEx opt1 = new OperatorTestEx(4);

            opt1.NamesCollections.Add("A1-A");
            opt1.NamesCollections.Add("A1-B");
            OperatorTestEx opt2 = new OperatorTestEx(5);

            opt2.NamesCollections.Add("B1-A");
            opt2.NamesCollections.Add("B1-B");
            opt2.NamesCollections.Add("B1-C");
            opt2.NamesCollections.Add("B1-D");
            var opt = opt1 + opt2;

            Console.WriteLine($"Result: \nCount:{opt.NCCount}/AG:{opt.AG}");
            foreach (var str in opt.NamesCollections)
            {
                Console.WriteLine($"{str}");
            }
            Console.WriteLine($"For ex Message:{opt.Message}");
        }