コード例 #1
0
        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");
        }
コード例 #2
0
ファイル: Int16TypeFixture.cs プロジェクト: jrauber/GH1429
        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");
        }
コード例 #3
0
ファイル: TestData.cs プロジェクト: abbotware/arrow-fork
            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();
            }
コード例 #4
0
 public void Visit(Int16Type type) => CreateIntType(type);
コード例 #5
0
 public void Visit(Int16Type type) => GenerateArray(new Int16Array.Builder(), x => (short)x);
コード例 #6
0
 public void Visit(Int16Type type) => GenerateArray <short, Int16Array>((v, n, c, nc, o) => new Int16Array(v, n, c, nc, o));
コード例 #7
0
 public void Visit(Int16Type type) => GenerateTestData <short, Int16Array, Int16Array.Builder>(type, x => (short)x);
コード例 #8
0
 public object Read(Int16Type int16Type) => reader.ReadInt16();
コード例 #9
0
 public void Write(Int16Type int16Type, object value) => writer.Write(Convert.ToInt16(value));
コード例 #10
0
 public void Visit(Int16Type type) => _array     = new Int16Array(_data);
コード例 #11
0
 public void Visit(Int16Type type)
 {
     ColumnDecoder = new Int16Decoder();
 }
コード例 #12
0
        public void Seed()
        {
            Int16Type type = (Int16Type)NHibernateUtil.Int16;

            Assert.IsTrue(type.Seed(null) is Int16, "seed should be int16");
        }
コード例 #13
0
ファイル: Int16TypeFixture.cs プロジェクト: jrauber/GH1429
        public async Task SeedAsync()
        {
            Int16Type type = (Int16Type)NHibernateUtil.Int16;

            Assert.IsTrue(await(type.SeedAsync(null, CancellationToken.None)) is Int16, "seed should be int16");
        }