diff options
Diffstat (limited to 'src/test/WixToolsetTest.Data/WindowsInstallerTableDefinitionsFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.Data/WindowsInstallerTableDefinitionsFixture.cs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/test/WixToolsetTest.Data/WindowsInstallerTableDefinitionsFixture.cs b/src/test/WixToolsetTest.Data/WindowsInstallerTableDefinitionsFixture.cs deleted file mode 100644 index 5621a756..00000000 --- a/src/test/WixToolsetTest.Data/WindowsInstallerTableDefinitionsFixture.cs +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 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.Data | ||
| 4 | { | ||
| 5 | using WixToolset.Data.WindowsInstaller; | ||
| 6 | using Xunit; | ||
| 7 | |||
| 8 | public class WindowsInstallerTableDefinitionsFixture | ||
| 9 | { | ||
| 10 | [Fact] | ||
| 11 | public void CanCreateWindowsInstallerRows() | ||
| 12 | { | ||
| 13 | foreach (var tableDefinition in WindowsInstallerTableDefinitions.All) | ||
| 14 | { | ||
| 15 | var table = new Table(tableDefinition); | ||
| 16 | var rowFromTable = table.CreateRow(null); | ||
| 17 | var rowFromTableDefinition = tableDefinition.CreateRow(null); | ||
| 18 | var expectedRowTypeName = tableDefinition.Name.Replace("_", "") + "Row"; | ||
| 19 | var expectedRowType = rowFromTable.GetType(); | ||
| 20 | |||
| 21 | Assert.Equal(expectedRowType, rowFromTableDefinition.GetType()); | ||
| 22 | if (typeof(Row) != expectedRowType) | ||
| 23 | { | ||
| 24 | Assert.Equal(expectedRowTypeName, expectedRowType.Name); | ||
| 25 | } | ||
| 26 | } | ||
| 27 | } | ||
| 28 | } | ||
| 29 | } | ||
