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);
        }
Exemple #9
0
        public void ShouldWriteSqlTypeAttribute()
        {
            writer = new XmlColumnWriter();
            var testHelper = new XmlWriterTestHelper <ColumnMapping>();

            testHelper.Check(x => x.SqlType, "type").MapsToAttribute("sql-type");

            testHelper.VerifyAll(writer);
        }
Exemple #10
0
        public void ShouldWriteUniqueAttribute()
        {
            writer = new XmlColumnWriter();
            var testHelper = new XmlWriterTestHelper <ColumnMapping>();

            testHelper.Check(x => x.Unique, true).MapsToAttribute("unique");

            testHelper.VerifyAll(writer);
        }
Exemple #11
0
        public void ShouldWriteNotNullAttribute()
        {
            writer = new XmlColumnWriter();
            var testHelper = new XmlWriterTestHelper <ColumnMapping>();

            testHelper.Check(x => x.NotNull, true).MapsToAttribute("not-null");

            testHelper.VerifyAll(writer);
        }
Exemple #12
0
        public void ShouldWriteNameAttribute()
        {
            writer = new XmlColumnWriter();
            var testHelper = new XmlWriterTestHelper <ColumnMapping>();

            testHelper.Check(x => x.Name, "name").MapsToAttribute("name");

            testHelper.VerifyAll(writer);
        }
Exemple #13
0
        public void ShouldWriteLengthAttribute()
        {
            writer = new XmlColumnWriter();
            var testHelper = new XmlWriterTestHelper <ColumnMapping>();

            testHelper.Check(x => x.Length, 10).MapsToAttribute("length");

            testHelper.VerifyAll(writer);
        }
Exemple #14
0
        public void ShouldWriteIndexAttribute()
        {
            writer = new XmlColumnWriter();
            var testHelper = new XmlWriterTestHelper <ColumnMapping>();

            testHelper.Check(x => x.Index, "ix").MapsToAttribute("index");

            testHelper.VerifyAll(writer);
        }
Exemple #15
0
        public void ShouldWriteDefaultAttribute()
        {
            writer = new XmlColumnWriter();
            var testHelper = new XmlWriterTestHelper <ColumnMapping>();

            testHelper.Check(x => x.Default, "df").MapsToAttribute("default");

            testHelper.VerifyAll(writer);
        }