Beispiel #1
0
        public void Clear_WhenFromAndToHasValue_IsCompleteReturnsFalse()
        {
            var interval = new StructureIdInterval();

            interval.Set(StructureId.Create(1));
            interval.Set(StructureId.Create(2));

            interval.Clear();

            Assert.IsFalse(interval.IsComplete);
        }
Beispiel #2
0
        public void Clear_WhenFromAndToHasValue_BothBecomesNull()
        {
            var interval = new StructureIdInterval();

            interval.Set(StructureId.Create(1));
            interval.Set(StructureId.Create(2));

            interval.Clear();

            Assert.IsNull(interval.From);
            Assert.IsNull(interval.To);
        }