示例#1
0
        public void ShouldReturnTrueForPrimaryKey()
        {
            var builder = new CreateBuilder();
            builder.CreateTable<Person>();

            builder.ToString().Should().Contain("CONSTRAINT [PK_Person] PRIMARY KEY CLUSTERED ");
        }
示例#2
0
        public void ShouldReturnFalseForNonPrimaryKey()
        {
            var builder = new CreateBuilder();
            builder.CreateTable<NoKey>();

            builder.ToString().Should().NotContain("CLUSTERED ");
        }