public void Can_create_values_for_long_types() { var generator = new TemporaryLongValueGenerator(); Assert.Equal(long.MinValue + 1001, generator.Next(null)); Assert.Equal(long.MinValue + 1002, generator.Next(null)); Assert.Equal(long.MinValue + 1003, generator.Next(null)); }
public void Can_create_values_for_long_types() { var generator = new TemporaryLongValueGenerator(); Assert.Equal(long.MinValue + 1001, generator.Next(null)); Assert.Equal(long.MinValue + 1002, generator.Next(null)); Assert.Equal(long.MinValue + 1003, generator.Next(null)); }
protected override object NextValue(EntityEntry entry) { return(Activator.CreateInstance(typeof(T), _innerGenerator.Next(entry))); }