Exemple #1
0
        public void ShouldBeSetDiffInSeconds()
        {
            Instant first  = new Instant();
            Instant second = new Instant(first.ToDateTime().AddSeconds(30));

            int diff = first.DiffInSeconds(second);

            Expect.AreEqual(30, diff);

            diff = second.DiffInSeconds(first);
            Expect.AreEqual(30, diff);
        }