public void ShouldTestStartValue()
        {
            var gen                = new HourDateTimeGenerator(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 HourDateTimeGenerator(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.FromHours(1), Is.EqualTo(secondValue));
        }
        public void ShouldGenerateValue()
        {
            var gen        = new HourDateTimeGenerator(new ColumnDataTypeDefinition("DateTime2(2)", false));
            var firstValue = (DateTime)gen.GenerateValue(1);

            Assert.That(firstValue, Is.Not.Null);
        }
        public void ShouldTestOffsets()
        {
            var gen  = new HourDateTimeGenerator(new ColumnDataTypeDefinition("DateTime2(2)", false));
            var gen2 = new HourDateTimeGenerator(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));
        }