Make properties in test case private

This commit is contained in:
1024jp 2020-04-15 22:44:25 +09:00
parent 49956ee374
commit 2364123595
4 changed files with 13 additions and 12 deletions

View File

@ -29,7 +29,7 @@ import XCTest
final class EncodingDetectionTests: XCTestCase {
private(set) lazy var bundle = Bundle(for: type(of: self))
private lazy var bundle = Bundle(for: type(of: self))
func testUTF8BOM() throws {

View File

@ -29,7 +29,7 @@ import XCTest
final class LineSortTests: XCTestCase {
let lines = """
private let lines = """
dog, 🐕, 2,
cat, 🐈, 1,
cow, 🐄, 3,

View File

@ -28,17 +28,18 @@ import XCTest
import Yams
@testable import CotEditor
let styleDirectoryName = "Syntaxes"
let styleExtension = "yaml"
final class SyntaxTests: XCTestCase {
var styleDicts: [String: SyntaxManager.StyleDictionary] = [:]
var htmlStyle: SyntaxStyle?
var htmlSource: String?
private let styleDirectoryName = "Syntaxes"
private let styleExtension = "yaml"
var outlineParseExpectation: XCTestExpectation?
private var styleDicts: [String: SyntaxManager.StyleDictionary] = [:]
private var htmlStyle: SyntaxStyle?
private var htmlSource: String?
private var outlineParseExpectation: XCTestExpectation?

View File

@ -27,12 +27,12 @@
import XCTest
@testable import CotEditor
private let themeDirectoryName = "Themes"
final class ThemeTests: XCTestCase {
private(set) lazy var bundle = Bundle(for: type(of: self))
private let themeDirectoryName = "Themes"
private lazy var bundle = Bundle(for: type(of: self))
func testDefaultTheme() throws {