tests/general/strings.Exceptions.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$exceptions = @{ }

<#
A list of entries that MAY be in the language files, without causing the tests to fail.
This is commonly used in modules that generate localized messages straight from C#.
Specify the full key as it is written in the language files, do not prepend the modulename,
as you would have to in C# code.
 
Example:
$exceptions['LegalSurplus'] = @(
    'Exception.Streams.FailedCreate'
    'Exception.Streams.FailedDispose'
)
#>

$exceptions['LegalSurplus'] = @(

)
<#
A list of entries that MAY be used without needing to have text defined.
This is intended for modules (re-)using strings provided by another module
#>

$exceptions['NoTextNeeded'] = @(
    'Validate.FSPath'
    'Validate.FSPath.File'
    'Validate.FSPath.FileOrParent'
    'Validate.FSPath.Folder'
    'Validate.Path'
    'Validate.Path.Container'
    'Validate.Path.Leaf'
    'Validate.TimeSpan.Positive'
    'Validate.Uri.Absolute'
    'Validate.Uri.Absolute.File'
    'Validate.Uri.Absolute.Https'
)

$exceptions