diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-04-22 06:01:58 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-04-29 16:22:59 -0700 |
| commit | 9e83fcb193e2358b21f6caa10b1fc9f6059018b0 (patch) | |
| tree | 64fa2c78f1d8c332b2baa18b3a1a1cc477a47ec0 /src/test/WixToolsetTest.Data/WindowsInstallerTableDefinitionsFixture.cs | |
| parent | e51932ea0bac331b128dba9809f00c7d393c7a9b (diff) | |
| download | wix-9e83fcb193e2358b21f6caa10b1fc9f6059018b0.tar.gz wix-9e83fcb193e2358b21f6caa10b1fc9f6059018b0.tar.bz2 wix-9e83fcb193e2358b21f6caa10b1fc9f6059018b0.zip | |
Move Data into API/wix
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 | } | ||
