public void ShouldTestStartValue()
        {
            var gen                = new MinutesDateTimeGenerator(new ColumnDataTypeDefinition("DateTime2(2)", false));
            var firstValue         = (DateTime)gen.GenerateValue(1);
            var repeatedFirstValue = (DateTime)gen.GenerateValue(1);

            Assert.That(firstValue, Is.EqualTo(repeatedFirstValue));
        }
        public void ShouldTestStep()
        {
            var gen         = new MinutesDateTimeGenerator(new ColumnDataTypeDefinition("DateTime2(2)", false));
            var firstValue  = (DateTime)gen.GenerateValue(1);
            var secondValue = (DateTime)gen.GenerateValue(2);

            Assert.That(firstValue, Is.LessThan(secondValue));
            Assert.That(firstValue + TimeSpan.FromMinutes(1), Is.EqualTo(secondValue));
        }
        public void ShouldGenerateValue()
        {
            var gen        = new MinutesDateTimeGenerator(new ColumnDataTypeDefinition("DateTime2(2)", false));
            var firstValue = (DateTime)gen.GenerateValue(1);

            Assert.That(firstValue, Is.Not.Null);
        }
        public void ShouldTestOffsets()
        {
            var gen  = new MinutesDateTimeGenerator(new ColumnDataTypeDefinition("DateTime2(2)", false));
            var gen2 = new MinutesDateTimeGenerator(new ColumnDataTypeDefinition("DateTime2(2)", false));

            gen.GeneratorParameters.ShiftDays.Value         = 1;
            gen.GeneratorParameters.ShiftHours.Value        = 1;
            gen.GeneratorParameters.ShiftMinutes.Value      = 1;
            gen.GeneratorParameters.ShiftSeconds.Value      = 1;
            gen.GeneratorParameters.ShiftMilliseconds.Value = 1;

            var valueFromOffsetGenerator = (DateTime)gen.GenerateValue(1);
            var valueFromNoOffset        = (DateTime)gen2.GenerateValue(1);

            Assert.That(valueFromOffsetGenerator, Is.GreaterThan(valueFromNoOffset));
        }