public void ShouldWriteSqlTypeAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper<ColumnMapping>(); testHelper.Check(x => x.SqlType, "type").MapsToAttribute("sql-type"); testHelper.VerifyAll(writer); }
public void ShouldWriteUniqueAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper<ColumnMapping>(); testHelper.Check(x => x.Unique, true).MapsToAttribute("unique"); testHelper.VerifyAll(writer); }
public void ShouldWriteNameAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper<ColumnMapping>(); testHelper.Check(x => x.Name, "name").MapsToAttribute("name", "name"); testHelper.VerifyAll(writer); }
public void ShouldWriteNotNullAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper<ColumnMapping>(); testHelper.Check(x => x.NotNull, true).MapsToAttribute("not-null"); testHelper.VerifyAll(writer); }
public void ShouldWriteIndexAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper<ColumnMapping>(); testHelper.Check(x => x.Index, "ix").MapsToAttribute("index"); testHelper.VerifyAll(writer); }
public void ShouldWriteLengthAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper<ColumnMapping>(); testHelper.Check(x => x.Length, 10).MapsToAttribute("length"); testHelper.VerifyAll(writer); }
public void ShouldWriteCheckAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper<ColumnMapping>(); testHelper.Check(x => x.Check, "ck").MapsToAttribute("check"); testHelper.VerifyAll(writer); }
public void ShouldWriteDefaultAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper<ColumnMapping>(); testHelper.Check(x => x.Default, "df").MapsToAttribute("default"); testHelper.VerifyAll(writer); }
public void ShouldWriteSqlTypeAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper <ColumnMapping>(); testHelper.Check(x => x.SqlType, "type").MapsToAttribute("sql-type"); testHelper.VerifyAll(writer); }
public void ShouldWriteUniqueAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper <ColumnMapping>(); testHelper.Check(x => x.Unique, true).MapsToAttribute("unique"); testHelper.VerifyAll(writer); }
public void ShouldWriteNotNullAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper <ColumnMapping>(); testHelper.Check(x => x.NotNull, true).MapsToAttribute("not-null"); testHelper.VerifyAll(writer); }
public void ShouldWriteNameAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper <ColumnMapping>(); testHelper.Check(x => x.Name, "name").MapsToAttribute("name"); testHelper.VerifyAll(writer); }
public void ShouldWriteLengthAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper <ColumnMapping>(); testHelper.Check(x => x.Length, 10).MapsToAttribute("length"); testHelper.VerifyAll(writer); }
public void ShouldWriteIndexAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper <ColumnMapping>(); testHelper.Check(x => x.Index, "ix").MapsToAttribute("index"); testHelper.VerifyAll(writer); }
public void ShouldWriteDefaultAttribute() { writer = new XmlColumnWriter(); var testHelper = new XmlWriterTestHelper <ColumnMapping>(); testHelper.Check(x => x.Default, "df").MapsToAttribute("default"); testHelper.VerifyAll(writer); }