Beispiel #1
0
        public void Deconstruct()
        {
            Instant? start    = Instant.FromUtc(2019, 1, 2, 3, 10, 11);
            Instant? end      = Instant.FromUtc(2020, 4, 5, 6, 12, 13);
            Interval interval = new Interval(start, end);

            Snippet.SilentForAction(() => interval.Deconstruct(out _, out _));
            interval.Deconstruct(out start, out end);
            Assert.AreEqual(Instant.FromUtc(2019, 1, 2, 3, 10, 11), start);
            Assert.AreEqual(Instant.FromUtc(2020, 4, 5, 6, 12, 13), end);
        }