@@ -164,7 +164,7 @@ public async Task UpdateMultipleUrlManifests()
164164 }
165165
166166 /// <summary>
167- /// Verifies that any fields with empty string values are replaced with null so that they do not appear in the manifest output.
167+ /// Verifies that any fields with empty string and list values are replaced with null so that they do not appear in the manifest output.
168168 /// </summary>
169169 /// <returns>A <see cref="Task"/> representing the asynchronous unit test.</returns>
170170 [ Test ]
@@ -181,12 +181,31 @@ public async Task UpdateRemovesEmptyFields()
181181 ClassicAssert . IsTrue ( updatedManifestContents . Any ( ) , "Updated manifests were not created successfully" ) ;
182182
183183 Manifests updatedManifests = Serialization . DeserializeManifestContents ( updatedManifestContents ) ;
184+
185+ // Empty string fields are removed
184186 ClassicAssert . IsNull ( updatedManifests . DefaultLocaleManifest . PrivacyUrl , "PrivacyUrl should be null." ) ;
185187 ClassicAssert . IsNull ( updatedManifests . DefaultLocaleManifest . Author , "Author should be null." ) ;
186-
187188 var firstInstaller = updatedManifests . InstallerManifest . Installers . First ( ) ;
188189 ClassicAssert . IsNull ( firstInstaller . ProductCode , "ProductCode should be null." ) ;
189190 ClassicAssert . IsNull ( firstInstaller . PackageFamilyName , "ProductCode should be null." ) ;
191+
192+ // Empty list fields are removed
193+ ClassicAssert . IsNull ( updatedManifests . InstallerManifest . Platform , "Platform should be null." ) ;
194+ ClassicAssert . IsNull ( updatedManifests . InstallerManifest . InstallModes , "InstallModes should be null." ) ;
195+ ClassicAssert . IsNull ( updatedManifests . InstallerManifest . FileExtensions , "FileExtensions should be null." ) ;
196+ ClassicAssert . IsNull ( updatedManifests . InstallerManifest . Commands , "Commands should be null." ) ;
197+ ClassicAssert . IsNull ( updatedManifests . InstallerManifest . AppsAndFeaturesEntries , "AppsAndFeaturesEntries should be null." ) ;
198+ ClassicAssert . IsNull ( updatedManifests . InstallerManifest . Protocols , "Protocols should be null." ) ;
199+ ClassicAssert . IsNull ( updatedManifests . InstallerManifest . Capabilities , "Capabilities should be null." ) ;
200+ ClassicAssert . IsNull ( updatedManifests . InstallerManifest . UnsupportedArguments , "UnsupportedArguments should be null." ) ;
201+ ClassicAssert . IsNull ( updatedManifests . InstallerManifest . UnsupportedOSArchitectures , "UnsupportedOSArchitectures should be null." ) ;
202+ ClassicAssert . IsNull ( updatedManifests . InstallerManifest . RestrictedCapabilities , "RestrictedCapabilities should be null." ) ;
203+ ClassicAssert . IsNull ( updatedManifests . InstallerManifest . NestedInstallerFiles , "NestedInstallerFiles should be null." ) ;
204+ ClassicAssert . IsNull ( updatedManifests . InstallerManifest . ExpectedReturnCodes , "ExpectedReturnCodes should be null." ) ;
205+ ClassicAssert . IsNull ( updatedManifests . DefaultLocaleManifest . Tags , "Tags should be null." ) ;
206+ ClassicAssert . IsNull ( updatedManifests . DefaultLocaleManifest . Agreements , "Agreements should be null." ) ;
207+ ClassicAssert . IsNull ( updatedManifests . DefaultLocaleManifest . Documentations , "Documentations should be null." ) ;
208+ ClassicAssert . IsNull ( updatedManifests . DefaultLocaleManifest . Icons , "Icons should be null." ) ;
190209 }
191210
192211 /// <summary>
0 commit comments