public void Next() { Int16Type type = (Int16Type)NHibernateUtil.Int16; object current = (short)1; object next = type.Next(current, null); Assert.IsTrue(next is Int16, "Next should be Int16"); Assert.AreEqual((short)2, (short)next, "current should have been incremented to 2"); }
public async Task NextAsync() { Int16Type type = (Int16Type)NHibernateUtil.Int16; object current = (short)1; object next = await(type.NextAsync(current, null, CancellationToken.None)); Assert.IsTrue(next is Int16, "Next should be Int16"); Assert.AreEqual((short)2, (short)next, "current should have been incremented to 2"); }
public void Visit(Int16Type type) { ArrowBuffer.Builder <short> builder = new ArrowBuffer.Builder <short>(_length); for (int i = 0; i < _length; i++) { builder.Append((short)i); } Buffer = builder.Build(); }
public void Visit(Int16Type type) => CreateIntType(type);
public void Visit(Int16Type type) => GenerateArray(new Int16Array.Builder(), x => (short)x);
public void Visit(Int16Type type) => GenerateArray <short, Int16Array>((v, n, c, nc, o) => new Int16Array(v, n, c, nc, o));
public void Visit(Int16Type type) => GenerateTestData <short, Int16Array, Int16Array.Builder>(type, x => (short)x);
public object Read(Int16Type int16Type) => reader.ReadInt16();
public void Write(Int16Type int16Type, object value) => writer.Write(Convert.ToInt16(value));
public void Visit(Int16Type type) => _array = new Int16Array(_data);
public void Visit(Int16Type type) { ColumnDecoder = new Int16Decoder(); }
public void Seed() { Int16Type type = (Int16Type)NHibernateUtil.Int16; Assert.IsTrue(type.Seed(null) is Int16, "seed should be int16"); }
public async Task SeedAsync() { Int16Type type = (Int16Type)NHibernateUtil.Int16; Assert.IsTrue(await(type.SeedAsync(null, CancellationToken.None)) is Int16, "seed should be int16"); }