Exemplo n.º 1
0
        public void RoundToMinutesTest()
        {
            Occurrence_Accessor target = new Occurrence_Accessor();

            Assert.AreEqual(new DateTime(2010, 1, 1, 12, 0, 0), target.RoundToMinutes(new DateTime(2010, 1, 1, 12, 0, 1)));
            Assert.AreEqual(new DateTime(2010, 1, 1, 12, 0, 0), target.RoundToMinutes(new DateTime(2010, 1, 1, 12, 0, 59)));
        }
Exemplo n.º 2
0
        public void RoundToMinutesTest()
        {
            Occurrence_Accessor target = new Occurrence_Accessor();

            Assert.AreEqual(new DateTime(2010, 1, 1, 12, 0, 0), target.RoundToMinutes(new DateTime(2010, 1, 1, 12, 0, 1)));
            Assert.AreEqual(new DateTime(2010, 1, 1, 12, 0, 0), target.RoundToMinutes(new DateTime(2010, 1, 1, 12, 0, 59)));
        }