@@ -35,17 +35,17 @@ public static void AreEqual(string expected, string actual, string message, stri
3535 {
3636 EnsureFolder ( expected ) ;
3737 File . Copy ( actual , expected ) ;
38- Assert . Fail ( "File not found: {0}" , expected ) ;
38+ Assert . Fail ( string . Format ( "File not found: {0}" , expected ) ) ;
3939 }
4040
4141 if ( expectedImage . GetLength ( 0 ) != actualImage . GetLength ( 0 ) )
4242 {
43- Assert . Fail ( "Expected height: {0}\n Actual height:{1}\n {2}" , expectedImage . GetLength ( 0 ) , actualImage . GetLength ( 0 ) , message ) ;
43+ Assert . Fail ( string . Format ( "Expected height: {0}\n Actual height:{1}\n {2}" , expectedImage . GetLength ( 0 ) , actualImage . GetLength ( 0 ) , message ) ) ;
4444 }
4545
4646 if ( expectedImage . GetLength ( 1 ) != actualImage . GetLength ( 1 ) )
4747 {
48- Assert . Fail ( "Expected width: {0}\n Actual width:{1}\n {2}" , expectedImage . GetLength ( 1 ) , actualImage . GetLength ( 1 ) , message ) ;
48+ Assert . Fail ( string . Format ( "Expected width: {0}\n Actual width:{1}\n {2}" , expectedImage . GetLength ( 1 ) , actualImage . GetLength ( 1 ) , message ) ) ;
4949 }
5050
5151 var w = expectedImage . GetLength ( 0 ) ;
@@ -87,13 +87,13 @@ public static void AreEqual(string expected, string actual, string message, stri
8787 File . WriteAllBytes ( output , encoder . Encode ( differenceImage ) ) ;
8888 }
8989
90- Assert . Fail (
90+ Assert . Fail ( string . Format (
9191 "{0}:\n Pixel differences: {1}\n Expected image: {2}\n Actual image: {3}\n Diff image: {4}" ,
9292 message ,
9393 differences ,
9494 Path . GetFullPath ( expected ) ,
9595 Path . GetFullPath ( actual ) ,
96- Path . GetFullPath ( output ) ) ;
96+ Path . GetFullPath ( output ) ) ) ;
9797 }
9898 }
9999
0 commit comments