Beispiel #1
0
        public void QuarterTest()
        {
            var quarter      = CreateQuarter(ticker, period, properties, descriptions);
            var csvOutput    = new Tabular <Quarter>();
            var rows         = csvOutput.Add(quarter).ToRows().ToArray();
            var header       = rows[0];
            var firstDataRow = rows[1];

            Assert.AreEqual("キー", header.Key);
            Assert.AreEqual("項目名", header.Name);
            Assert.AreEqual("単位", header.Unit);
            Assert.AreEqual(1, header.Values.Count);
            Assert.AreEqual(period.ToString(), header.Values[0]);

            Assert.AreEqual(key, firstDataRow.Key);
            Assert.AreEqual(label, firstDataRow.Name);
            Assert.AreEqual(unit, firstDataRow.Unit);
            Assert.AreEqual(1, firstDataRow.Values.Count);
            Assert.AreEqual(value, firstDataRow.Values[0]);
        }