Skip to content

Commit 3b4dedd

Browse files
committed
Improve virtual text with boolean
1 parent c2334bb commit 3b4dedd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/test/kotlin/oop/Proxy/ScreenVirtualProxyTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ class ScreenVirtualProxyTest {
88

99
@Test
1010
fun `not create real object in proxy construction`() {
11-
var createCount = 0
11+
var createCount = false
1212
var createRealScreen = {
13-
createCount++
13+
createCount = true
1414
RealScreen()
1515
}
1616

1717
val screenVirtualProxy = ScreenVirtualProxy(createRealScreen)
1818

19-
assertThat(createCount, `is`(0))
19+
assertFalse(createCount)
2020
}
2121

2222
@Test

0 commit comments

Comments
 (0)