Пример #1
0
        public void TestStore()
        {
            SeriesLabelsRecord record = new SeriesLabelsRecord();
            record.IsShowActual=(true);
            record.IsShowPercent=(true);
            record.IsLabelAsPercentage = (false);
            record.IsSmoothedLine = (false);
            record.IsShowLabel = (false);
            record.IsShowBubbleSizes = (false);


            byte[] recordBytes = record.Serialize();
            Assert.AreEqual(recordBytes.Length - 4, data.Length);
            for (int i = 0; i < data.Length; i++)
                Assert.AreEqual(data[i], recordBytes[i + 4], "At offset " + i);
        }
Пример #2
0
        public void TestStore()
        {
            SeriesLabelsRecord record = new SeriesLabelsRecord();

            record.IsShowActual        = (true);
            record.IsShowPercent       = (true);
            record.IsLabelAsPercentage = (false);
            record.IsSmoothedLine      = (false);
            record.IsShowLabel         = (false);
            record.IsShowBubbleSizes   = (false);


            byte[] recordBytes = record.Serialize();
            Assert.AreEqual(recordBytes.Length - 4, data.Length);
            for (int i = 0; i < data.Length; i++)
            {
                Assert.AreEqual(data[i], recordBytes[i + 4], "At offset " + i);
            }
        }