public void ConstraintToZeroLenght()
        {
            var    calculator = new PartitionSegmentCalculator(512, 1536);
            Action t          = () => calculator.Constraint(new GptSegment(1536, 1000));

            t.Should().Throw <InvalidOperationException>();
        }
        public void TestNextSector(ulong last, ulong next)
        {
            last.Should().BeLessThan(next);

            var calculator = new PartitionSegmentCalculator(256, ulong.MaxValue);

            calculator.GetNextSector(last).Should().Be(next);
        }
        public void TestSize(ulong start, ulong length, ulong expectedStart, ulong expectedLength)
        {
            var calculator = new PartitionSegmentCalculator(512, 1536);
            var partSize   = calculator.Constraint(new GptSegment(start, length));
            var gptSegment = new GptSegment(expectedStart, expectedLength);

            partSize.Should().Be(gptSegment);
        }