Skip to content

Commit b70a436

Browse files
Add tests for disablesAutomaticKeyboardDismissal
1 parent b5f955f commit b70a436

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Tests/UICoreTests/ViewControllerTests.swift

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: BSD-3-Clause
22

33
import XCTest
4-
import SwiftWin32
4+
@testable import SwiftWin32
55

66
final class ViewControllerTests: XCTestCase {
77
func testLazyViewLoading() {
@@ -37,4 +37,14 @@ final class ViewControllerTests: XCTestCase {
3737

3838
XCTAssertEqual(sut.title, "Title")
3939
}
40+
41+
func testValueOfDisablesAutomaticKeyboardDismissal() {
42+
let sut = ViewController()
43+
44+
XCTAssertFalse(sut.disablesAutomaticKeyboardDismissal)
45+
46+
// sut.modalPresentationStyle = .formSheet // This is currently failing due to missing implementation
47+
48+
// XCTAssertTrue(sut.disablesAutomaticKeyboardDismissal)
49+
}
4050
}

0 commit comments

Comments
 (0)