コード例 #1
0
        public void FakeTable_ExecuteCreateShell_IdentityHandledCorrectly(bool keepIdentity, bool expected)
        {
            testTarget.CreateFakeTableShell("HasIdentity", keepIdentity);
            var actual = testTarget.GetActual(@"SELECT c.is_identity 
                                                FROM sys.all_columns c 
                                                    JOIN sys.objects o on c.object_id = o.object_id
                                                 WHERE o.name = 'HasIdentity'");

            Assert.That(actual, Is.EqualTo(expected));
        }
コード例 #2
0
        public void SqlTestTarget_ExecuteGetValue_ReturnsValue(string sql, object expected)
        {
            var actual = _testTarget.GetActual(sql);

            Assert.That(actual, Is.EqualTo(expected));
        }