diff options
Diffstat (limited to 'src/test/WixToolsetTest.Sql/SqlExtensionFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.Sql/SqlExtensionFixture.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.Sql/SqlExtensionFixture.cs b/src/test/WixToolsetTest.Sql/SqlExtensionFixture.cs new file mode 100644 index 00000000..831bcd83 --- /dev/null +++ b/src/test/WixToolsetTest.Sql/SqlExtensionFixture.cs | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolsetTest.Sql | ||
| 4 | { | ||
| 5 | using System.Linq; | ||
| 6 | using WixBuildTools.TestSupport; | ||
| 7 | using WixToolset.Core.TestPackage; | ||
| 8 | using WixToolset.Sql; | ||
| 9 | using Xunit; | ||
| 10 | |||
| 11 | public class SqlExtensionFixture | ||
| 12 | { | ||
| 13 | [Fact] | ||
| 14 | public void CanBuildUsingSqlString() | ||
| 15 | { | ||
| 16 | var folder = TestData.Get(@"TestData\UsingSql"); | ||
| 17 | var build = new Builder(folder, typeof(SqlExtensionFactory), new[] { folder }); | ||
| 18 | |||
| 19 | var results = build.BuildAndQuery(Build, "SqlString"); | ||
| 20 | Assert.Equal(new[] | ||
| 21 | { | ||
| 22 | "SqlString:", | ||
| 23 | }, results.OrderBy(s => s).ToArray()); | ||
| 24 | } | ||
| 25 | |||
| 26 | private static void Build(string[] args) | ||
| 27 | { | ||
| 28 | var result = WixRunner.Execute(args) | ||
| 29 | .AssertSuccess(); | ||
| 30 | } | ||
| 31 | } | ||
| 32 | } | ||
