RangeBeginAsInt() публичный Метод

public RangeBeginAsInt ( ) : int
Результат int
        public void If_AsNumericRange_PreviousBlock_ThenLastBlockContainsDates()
        {
            // ARRANGE
            // Create previous blocks
            using (var executionContext = CreateTaskExecutionContext())
            {
                var startedOk = executionContext.TryStart();
                if (startedOk)
                {
                    var rangeBlocks = executionContext.GetNumericRangeBlocks(x => x.WithRange(1, 1000, 100));

                    foreach (var rangeBlock in rangeBlocks)
                    {
                        rangeBlock.Start();
                        rangeBlock.Complete();
                    }
                }
            }

            var expectedLastBlock = new RangeBlock("0", 1, 901, 1000, BlockType.NumericRange);

            // ACT
            INumericRangeBlock lastBlock = null;
            using (var executionContext = CreateTaskExecutionContext())
            {
                var startedOk = executionContext.TryStart();
                if (startedOk)
                {
                    lastBlock = executionContext.GetLastNumericRangeBlock(LastBlockOrder.MaxRangeStartValue);
                }
            }

            // ASSERT
            Assert.AreEqual(expectedLastBlock.RangeBeginAsInt(), lastBlock.StartNumber);
            Assert.AreEqual(expectedLastBlock.RangeEndAsInt(), lastBlock.EndNumber);
        }