Beispiel #1
0
        public void UNIQUEIDENTIFIER_Data_ScriptsCorrectly()
        {
            Guid   baseData = new Guid("9631B0CA-D86F-4CA2-BFA5-93A9980D050A");
            object data     = baseData;

            var fieldInfo = SchemaScriptingTests.FakeColumn("test", "test", 64, "uniqueidentifier", false, 0, 0);

            Assert.AreEqual("'9631B0CA-D86F-4CA2-BFA5-93A9980D050A'", FieldScripting.valueAsTSQLLiteral(data, fieldInfo), "uniqueidentifier");
            Assert.AreEqual("9631B0CA-D86F-4CA2-BFA5-93A9980D050A", FieldScripting.formatGuid(data, false), "uniqueidentifier");
        }