@@ -540,43 +540,43 @@ public void Passing() { }
540540 [ Fact ]
541541 public void ClassWithBrokenFactShouldNotDisruptDiscovery ( )
542542 {
543- var msgs = Run < ITestResultMessage > ( new [ ] { typeof ( ClassWithBrokenFactAttribute ) } ) . OrderBy ( x => x . Test . DisplayName ) . ToList ( ) ;
543+ var msgs = Run < ITestResultMessage > ( new [ ] { typeof ( ClassWithReadOnlySkipFactAttribute ) } ) . OrderBy ( x => x . Test . DisplayName ) . ToList ( ) ;
544544
545545 Assert . Collection ( msgs ,
546546 msg =>
547547 {
548- Assert . Equal ( "Xunit2AcceptanceTests+CustomFacts+ClassWithBrokenFactAttribute .Test1" , msg . Test . DisplayName ) ;
548+ Assert . Equal ( "Xunit2AcceptanceTests+CustomFacts+ClassWithReadOnlySkipFactAttribute .Test1" , msg . Test . DisplayName ) ;
549549 var skip = Assert . IsAssignableFrom < ITestSkipped > ( msg ) ;
550550 Assert . Equal ( "Skipped with Fact" , skip . Reason ) ;
551551 } ,
552552 msg =>
553553 {
554- Assert . Equal ( "Xunit2AcceptanceTests+CustomFacts+ClassWithBrokenFactAttribute .Test2" , msg . Test . DisplayName ) ;
554+ Assert . Equal ( "Xunit2AcceptanceTests+CustomFacts+ClassWithReadOnlySkipFactAttribute .Test2" , msg . Test . DisplayName ) ;
555555 var fail = Assert . IsAssignableFrom < ITestFailed > ( msg ) ;
556556 Assert . StartsWith (
557557 "Exception during discovery:" + Environment . NewLine +
558- "System.ArgumentException: Could not set property named 'Skip' on instance of 'Xunit2AcceptanceTests+CustomFacts+SkipFact '" + Environment . NewLine +
558+ "System.ArgumentException: Could not set property named 'Skip' on instance of 'Xunit2AcceptanceTests+CustomFacts+ReadOnlySkipFact '" + Environment . NewLine +
559559 "Parameter name: attributeData" ,
560560 fail . Messages . Single ( )
561561 ) ;
562562 } ,
563563 msg =>
564564 {
565- Assert . Equal ( "Xunit2AcceptanceTests+CustomFacts+ClassWithBrokenFactAttribute .Test3" , msg . Test . DisplayName ) ;
565+ Assert . Equal ( "Xunit2AcceptanceTests+CustomFacts+ClassWithReadOnlySkipFactAttribute .Test3" , msg . Test . DisplayName ) ;
566566 Assert . IsAssignableFrom < ITestPassed > ( msg ) ;
567567 }
568568 ) ;
569569 }
570570
571- class ClassWithBrokenFactAttribute
571+ class ClassWithReadOnlySkipFactAttribute
572572 {
573573 [ Fact ( Skip = "Skipped with Fact" ) ]
574574 public void Test1 ( )
575575 {
576576 Assert . True ( false ) ;
577577 }
578578
579- [ SkipFact ( Skip = "Simple not run, not skipped" ) ]
579+ [ ReadOnlySkipFact ( Skip = "Simple not run, not skipped" ) ]
580580 public void Test2 ( )
581581 {
582582 Assert . True ( false ) ;
@@ -587,7 +587,7 @@ public void Test3()
587587 { }
588588 }
589589
590- public class SkipFact : FactAttribute
590+ public class ReadOnlySkipFact : FactAttribute
591591 {
592592 // Property setter here is missing, so trying to use it with the overridden skip message will fail at runtime
593593 public override string Skip => "Skipped" ;
0 commit comments