File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ public void ClearScreenNextIteration_Resets_To_False_After_LayoutAndDraw ()
26
26
public void ClearContents_Called_When_Top_Frame_Changes ( )
27
27
{
28
28
// Arrange
29
- Application . Init ( ) ;
30
29
Application . Top = new Toplevel ( ) ;
31
30
Application . TopLevels . Push ( Application . Top ) ;
32
31
@@ -38,28 +37,28 @@ public void ClearContents_Called_When_Top_Frame_Changes ()
38
37
Application . LayoutAndDraw ( ) ;
39
38
40
39
// Assert
41
- Assert . Equal ( 0 , clearedContentsRaised ) ;
40
+ Assert . Equal ( 1 , clearedContentsRaised ) ;
42
41
43
42
// Act
44
43
Application . Top . SetNeedsLayout ( ) ;
45
44
Application . LayoutAndDraw ( ) ;
46
45
47
46
// Assert
48
- Assert . Equal ( 0 , clearedContentsRaised ) ;
47
+ Assert . Equal ( 1 , clearedContentsRaised ) ;
49
48
50
49
// Act
51
50
Application . Top . X = 1 ;
52
51
Application . LayoutAndDraw ( ) ;
53
52
54
53
// Assert
55
- Assert . Equal ( 1 , clearedContentsRaised ) ;
54
+ Assert . Equal ( 2 , clearedContentsRaised ) ;
56
55
57
56
// Act
58
57
Application . Top . Width = 10 ;
59
58
Application . LayoutAndDraw ( ) ;
60
59
61
60
// Assert
62
- Assert . Equal ( 2 , clearedContentsRaised ) ;
61
+ Assert . Equal ( 3 , clearedContentsRaised ) ;
63
62
64
63
// Cleanup
65
64
Application . ResetState ( true ) ;
You can’t perform that action at this time.
0 commit comments