예제 #1
0
        private static AxisLineFormatRecord CreateAxisLineFormatRecord(short format)
        {
            AxisLineFormatRecord r = new AxisLineFormatRecord();

            r.AxisType = (format);
            return(r);
        }
예제 #2
0
        public void TestLoad()
        {
            AxisLineFormatRecord record = new AxisLineFormatRecord(TestcaseRecordInputStream.Create((short)0x1021, data));
            Assert.AreEqual(AxisLineFormatRecord.AXIS_TYPE_MAJOR_GRID_LINE, record.AxisType);


            Assert.AreEqual(6, record.RecordSize);
        }
예제 #3
0
        public void TestLoad()
        {
            AxisLineFormatRecord record = new AxisLineFormatRecord(TestcaseRecordInputStream.Create((short)0x1021, data));

            Assert.AreEqual(AxisLineFormatRecord.AXIS_TYPE_MAJOR_GRID_LINE, record.AxisType);


            Assert.AreEqual(6, record.RecordSize);
        }
예제 #4
0
        public void TestStore()
        {
            AxisLineFormatRecord record = new AxisLineFormatRecord();
            record.AxisType = (AxisLineFormatRecord.AXIS_TYPE_MAJOR_GRID_LINE);


            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);
        }
예제 #5
0
        public void TestStore()
        {
            AxisLineFormatRecord record = new AxisLineFormatRecord();

            record.AxisType = (AxisLineFormatRecord.AXIS_TYPE_MAJOR_GRID_LINE);


            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);
            }
        }
예제 #6
0
파일: HSSFChart.cs 프로젝트: xoposhiy/npoi
 private AxisLineFormatRecord CreateAxisLineFormatRecord(short format)
 {
     AxisLineFormatRecord r = new AxisLineFormatRecord();
     r.AxisType = (format);
     return r;
 }