@@ -14,15 +14,15 @@ namespace System.Linq.Tests
1414
1515 public class EnumerableDebugViewTests
1616 {
17- [ Fact ]
17+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsDebuggerTypeProxyAttributeSupported ) ) ]
1818 public void NonGenericEnumerableDebugView_ThrowsForNullSource ( )
1919 {
2020 Exception exc = Assert . Throws < TargetInvocationException > ( ( ) => CreateSystemCore_EnumerableDebugView ( null ) ) ;
2121 ArgumentNullException ane = Assert . IsType < ArgumentNullException > ( exc . InnerException ) ;
2222 Assert . Equal ( "enumerable" , ane . ParamName ) ;
2323 }
2424
25- [ Fact ]
25+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsDebuggerTypeProxyAttributeSupported ) ) ]
2626 public void NonGenericEnumerableDebugView_ThrowsForEmptySource ( )
2727 {
2828 IEnumerable source = Enumerable . Range ( 10 , 0 ) ;
@@ -33,23 +33,23 @@ public void NonGenericEnumerableDebugView_ThrowsForEmptySource()
3333 Assert . False ( string . IsNullOrEmpty ( GetEmptyProperty ( exc . InnerException ) ) ) ;
3434 }
3535
36- [ Fact ]
36+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsDebuggerTypeProxyAttributeSupported ) ) ]
3737 public void NonGenericEnumerableDebugView_NonEmptySource ( )
3838 {
3939 IEnumerable source = Enumerable . Range ( 10 , 5 ) . Select ( i => ( object ) i ) ;
4040 object debugView = CreateSystemCore_EnumerableDebugView ( source ) ;
4141 Assert . Equal < object > ( source . Cast < object > ( ) . ToArray ( ) , GetItems < object > ( debugView ) ) ;
4242 }
4343
44- [ Fact ]
44+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsDebuggerTypeProxyAttributeSupported ) ) ]
4545 public void GenericEnumerableDebugView_ThrowsForNullSource ( )
4646 {
4747 Exception exc = Assert . Throws < TargetInvocationException > ( ( ) => CreateSystemCore_EnumerableDebugView < int > ( null ) ) ;
4848 ArgumentNullException ane = Assert . IsType < ArgumentNullException > ( exc . InnerException ) ;
4949 Assert . Equal ( "enumerable" , ane . ParamName ) ;
5050 }
5151
52- [ Fact ]
52+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsDebuggerTypeProxyAttributeSupported ) ) ]
5353 public void GenericEnumerableDebugView_ThrowsForEmptySource ( )
5454 {
5555 IEnumerable < int > source = Enumerable . Range ( 10 , 0 ) ;
@@ -60,7 +60,7 @@ public void GenericEnumerableDebugView_ThrowsForEmptySource()
6060 Assert . False ( string . IsNullOrEmpty ( GetEmptyProperty ( exc . InnerException ) ) ) ;
6161 }
6262
63- [ Fact ]
63+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsDebuggerTypeProxyAttributeSupported ) ) ]
6464 public void GenericEnumerableDebugView_NonEmptySource ( )
6565 {
6666 IEnumerable < int > source = Enumerable . Range ( 10 , 5 ) ;
0 commit comments