tests/Private/ConvertTo-PSDVXmlAttributeValue.Tests.ps1
|
. (Join-Path $PSScriptRoot 'PrivateTestCommon.ps1') Describe 'ConvertTo-PSDVXmlAttributeValue' { It 'escapes XML attribute-sensitive characters' { InModuleScope Dataverse { ConvertTo-PSDVXmlAttributeValue -Value "a&b<'`"" | Should -BeExactly 'a&b<'"' } } It 'allows empty strings' { InModuleScope Dataverse { ConvertTo-PSDVXmlAttributeValue -Value '' | Should -BeExactly '' } } } |