예제 #1
0
        [Test, Ignore] public void TestOverfow()
        {
            OverFlow myOverflowBase = new OverFlow("0");
            OverFlow myOverflow     = new OverFlow("10");

            myOverflow.AttributeName = "CLAIM:CLAIM_TYPE";
            myOverflow.Caption       = "    Claim (C) or Occurence (O)?";
            Assert.IsFalse(myOverflow.ShowWhenEmpty);
            myOverflow.Sequence      = 10;
            myOverflow.CaptionLength = 40;

            myOverflowBase.Add(myOverflow);

            myOverflow = new OverFlow("20");
            Assert.IsFalse(myOverflow.ShowWhenEmpty);
            myOverflow.Sequence      = 20;
            myOverflow.CaptionLength = 40;

            myOverflowBase.Add(myOverflow);

            string strXml = myOverflowBase.ToString();

            Assert.IsTrue(strXml.Length > 0);

            Console.WriteLine("{0}", strXml);
            Console.WriteLine("{0}", myOverflowBase.ToXml());
        }
예제 #2
0
        [Test, Ignore] public void TestOverfowSet()
        {
            OverFlow myOverflow = OverflowSet.BuildOverflowSet("11", "PAU");

            Console.WriteLine("************** GetAttributeDescriptions()");
            Console.WriteLine(myOverflow.GetAttributeDescriptions());
            Console.WriteLine("************** Overflow ToSting()");

            Assert.IsNotNull(myOverflow);
            string strXml = myOverflow.ToString();

            Assert.IsTrue(strXml.Length > 0);

            //Console.WriteLine("{0}",strXml);
            //Console.WriteLine("{0}",myOverflow.ToXml());

            IEnumerator enumList = myOverflow.GetEnumerator();

            while (enumList.MoveNext())
            {
                OverFlow currentOver = (OverFlow)enumList.Current;
                Console.WriteLine("{0}", currentOver.ToString());
            }
        }