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

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

            testHelper.VerifyAll(writer);
        }
Example #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);
        }
Example #12
0
        public void ShouldWriteNameAttribute()
        {
            writer = new XmlColumnWriter();
            var testHelper = new XmlWriterTestHelper <ColumnMapping>();

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

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

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

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

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

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

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

            testHelper.VerifyAll(writer);
        }