@@ -11,10 +11,10 @@ public sealed class MultiBoolToVisibilityVisibleValueConverterTests
11
11
private static readonly object [ ] Empty = [ ] ;
12
12
13
13
[ Theory ]
14
- [ InlineData ( true , nameof ( AllTrue ) ) ]
15
- [ InlineData ( false , nameof ( OneFalse ) ) ]
16
- [ InlineData ( true , nameof ( Empty ) ) ]
17
- public void Convert_AND_DefaultOperator ( bool expected , string inputSetName )
14
+ [ InlineData ( Visibility . Visible , nameof ( AllTrue ) ) ]
15
+ [ InlineData ( Visibility . Collapsed , nameof ( OneFalse ) ) ]
16
+ [ InlineData ( Visibility . Visible , nameof ( Empty ) ) ]
17
+ public void Convert_AND_DefaultOperator ( Visibility expected , string inputSetName )
18
18
{
19
19
// Arrange
20
20
var input = GetInput ( inputSetName ) ;
@@ -27,11 +27,11 @@ public void Convert_AND_DefaultOperator(bool expected, string inputSetName)
27
27
}
28
28
29
29
[ Theory ]
30
- [ InlineData ( true , nameof ( AllTrue ) ) ]
31
- [ InlineData ( true , nameof ( OneFalse ) ) ]
32
- [ InlineData ( false , nameof ( AllFalse ) ) ]
33
- [ InlineData ( false , nameof ( Empty ) ) ]
34
- public void Convert_OR_WithEnumParameter ( bool expected , string inputSetName )
30
+ [ InlineData ( Visibility . Visible , nameof ( AllTrue ) ) ]
31
+ [ InlineData ( Visibility . Visible , nameof ( OneFalse ) ) ]
32
+ [ InlineData ( Visibility . Collapsed , nameof ( AllFalse ) ) ]
33
+ [ InlineData ( Visibility . Collapsed , nameof ( Empty ) ) ]
34
+ public void Convert_OR_WithEnumParameter ( Visibility expected , string inputSetName )
35
35
{
36
36
// Arrange
37
37
var input = GetInput ( inputSetName ) ;
@@ -58,7 +58,7 @@ public void Convert_OR_WithStringParameter()
58
58
culture : CultureInfo . InvariantCulture ) ;
59
59
60
60
// Assert
61
- Assert . True ( ( bool ) actual ! ) ;
61
+ Assert . Equal ( Visibility . Visible , actual ! ) ;
62
62
}
63
63
64
64
private static object [ ] GetInput ( string name ) => name switch
0 commit comments