Tests.TableSchemaTests.should_create_table_with_identity C# (CSharp) Method

should_create_table_with_identity() private method

private should_create_table_with_identity ( ) : void
return void
        public void should_create_table_with_identity()
        {
            var tableName = "Temp" + Guid.NewGuid().ToString("N");
            GribbleDatabase.CreateTable(tableName,
                new Column("Id", typeof(int), isIdentity: true, key: Column.KeyType.PrimaryKey),
                new Column("Name", typeof(string), isNullable: true, length: 500),
                new Column("Created", typeof(DateTime), isNullable: false, isAutoGenerated: true));

            Database.ExecuteScalar<int>("SELECT COUNT(*) FROM sys.tables WHERE name='{0}'", tableName).ShouldEqual(1);
        }