Ejemplo n.º 1
0
        public void ShouldGetSetSegmentValueOptionsWhenValuesHaventGenerated(RangeDomainSegmentOptions option)
        {
            _subject = new RangeDomainSegment(_mockRandom.Object, 0, 10);
            _subject.SegmentValueOptions = option;

            Assert.AreEqual(option, _subject.SegmentValueOptions);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Sets get value option for all <see cref="IDomainSegment"/>s
        /// </summary>
        /// <param name="option">The option to set</param>
        /// <returns>Returns itself for fluent API</returns>
        public MathDomain SetRangeOptions(RangeDomainSegmentOptions option)
        {
            foreach (var domainSegment in _domainSegments)
            {
                domainSegment.SegmentValueOptions = option;
            }

            return(this);
        }