@@ -772,35 +772,35 @@ module FourSlash {
772
772
var actualQuickInfoSymbolName = actualQuickInfo ? actualQuickInfo . fullSymbolName : "" ;
773
773
var actualQuickInfoKind = actualQuickInfo ? actualQuickInfo . kind : "" ;
774
774
775
- function assertionMessage ( name : string , actualValue : string , expectedValue : string ) {
776
- return "\nActual " + name + ":\n\t " + actualValue + "\nExpected value:\n\t" + expectedValue ;
775
+ function assertionMessage ( msg : string ) {
776
+ return "\nMarker: " + currentTestState . lastKnownMarker + "\nChecking: " + msg + "\n\n" ;
777
777
}
778
778
779
779
if ( negative ) {
780
780
if ( expectedTypeName !== undefined ) {
781
- assert . notEqual ( actualQuickInfoMemberName , expectedTypeName , assertionMessage ( "quick info member name" , actualQuickInfoMemberName , expectedTypeName ) ) ;
781
+ assert . notEqual ( actualQuickInfoMemberName , expectedTypeName , assertionMessage ( "quick info member name" ) ) ;
782
782
}
783
783
if ( docComment != undefined ) {
784
- assert . notEqual ( actualQuickInfoDocComment , docComment , assertionMessage ( "quick info doc comment" , actualQuickInfoDocComment , docComment ) ) ;
784
+ assert . notEqual ( actualQuickInfoDocComment , docComment , assertionMessage ( "quick info doc comment" ) ) ;
785
785
}
786
786
if ( symbolName !== undefined ) {
787
- assert . notEqual ( actualQuickInfoSymbolName , symbolName , assertionMessage ( "quick info symbol name" , actualQuickInfoSymbolName , symbolName ) ) ;
787
+ assert . notEqual ( actualQuickInfoSymbolName , symbolName , assertionMessage ( "quick info symbol name" ) ) ;
788
788
}
789
789
if ( kind !== undefined ) {
790
- assert . notEqual ( actualQuickInfoKind , kind , assertionMessage ( "quick info kind" , actualQuickInfoKind , kind ) ) ;
790
+ assert . notEqual ( actualQuickInfoKind , kind , assertionMessage ( "quick info kind" ) ) ;
791
791
}
792
792
} else {
793
793
if ( expectedTypeName !== undefined ) {
794
- assert . equal ( actualQuickInfoMemberName , expectedTypeName , assertionMessage ( "quick info member" , actualQuickInfoMemberName , expectedTypeName ) ) ;
794
+ assert . equal ( actualQuickInfoMemberName , expectedTypeName , assertionMessage ( "quick info member" ) ) ;
795
795
}
796
796
if ( docComment != undefined ) {
797
- assert . equal ( actualQuickInfoDocComment , docComment , assertionMessage ( "quick info doc" , actualQuickInfoDocComment , docComment ) ) ;
797
+ assert . equal ( actualQuickInfoDocComment , docComment , assertionMessage ( "quick info doc" ) ) ;
798
798
}
799
799
if ( symbolName !== undefined ) {
800
- assert . equal ( actualQuickInfoSymbolName , symbolName , assertionMessage ( "quick info symbol name" , actualQuickInfoSymbolName , symbolName ) ) ;
800
+ assert . equal ( actualQuickInfoSymbolName , symbolName , assertionMessage ( "quick info symbol name" ) ) ;
801
801
}
802
802
if ( kind !== undefined ) {
803
- assert . equal ( actualQuickInfoKind , kind , assertionMessage ( "quick info kind" , actualQuickInfoKind , kind ) ) ;
803
+ assert . equal ( actualQuickInfoKind , kind , assertionMessage ( "quick info kind" ) ) ;
804
804
}
805
805
}
806
806
}
0 commit comments