Skip to content

Commit

Permalink
Merge pull request #23 from Zocdoc/mvs-fixed-brokentest
Browse files Browse the repository at this point in the history
- fixed broken test with PR merge
  • Loading branch information
marcio-santos-zocdoc authored Sep 1, 2016
2 parents fefcca3 + a982140 commit 3fb8078
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions test/DatabaseTester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,18 +335,9 @@ [LongNVarchar] [nvarchar](max) NULL
db.ScriptToDir();

var scriptedType = File.ReadAllText(db.Name + "\\table_types\\TYPE_MyTableType.sql");
var expectedScriptedType =
@"CREATE TYPE [dbo].[MyTableType] AS TABLE (
[ID] [nvarchar](250) COLLATE SQL_Latin1_General_CP1_CS_AS NULL ,
[Value] [numeric](5,1) NULL ,
[LongNVarchar] [nvarchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
)
GO
";

Assert.AreEqual(expectedScriptedType, scriptedType);
Assert.That(scriptedType, Is.StringContaining("[ID] [nvarchar](250) COLLATE SQL_Latin1_General_CP1_CS_AS NULL"));
Assert.That(scriptedType, Is.StringContaining("[LongNVarchar] [nvarchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL"));
}


Expand Down

0 comments on commit 3fb8078

Please sign in to comment.