Пример #1
0
 public void op_AdditionTest()
 {
     TimeseriesPoint point =		new TimeseriesPoint(DateTime.MinValue, 123, new List<string> { "sdf", "sdfs"}, PointType.Comment); // TODO: Initialize to an appropriate value
     TimeseriesPeriod period =	new TimeseriesPeriod(2, 3, 4); // TODO: Initialize to an appropriate value
     TimeseriesPeriod expected = new TimeseriesPeriod(2, 3, 5); // TODO: Initialize to an appropriate value
     TimeseriesPeriod actual;
     actual = (period + point);
     Assert.AreEqual(expected, actual);
 }
Пример #2
0
        public void TimeseriesPointConstructorTest()
        {
            DateTime count = new DateTime(2009, 06, 23); // TODO: Initialize to an appropriate value
            long questionId = 123; // TODO: Initialize to an appropriate value
            List<string> tags = new List<string> {"test1","test2" }; // TODO: Initialize to an appropriate value
            PointType type = PointType.Comment; // TODO: Initialize to an appropriate value
            TimeseriesPoint target = new TimeseriesPoint(count, questionId, tags, type);
            TimeseriesPoint actual = target;

            Assert.AreEqual( target, actual);
            Assert.AreEqual(2, actual.Tags.Count);
        }