public void ShouldReturnTrueForPrimaryKey() { var builder = new CreateBuilder(); builder.CreateTable<Person>(); builder.ToString().Should().Contain("CONSTRAINT [PK_Person] PRIMARY KEY CLUSTERED "); }
public void ShouldReturnFalseForNonPrimaryKey() { var builder = new CreateBuilder(); builder.CreateTable<NoKey>(); builder.ToString().Should().NotContain("CLUSTERED "); }