Test also counting of unknown and OTP related fields

This commit is contained in:
Danny Moesch 2018-12-08 18:21:09 +01:00 committed by Bob Sun
parent e019f6ac9d
commit 2ba6917710
2 changed files with 21 additions and 0 deletions

View file

@ -38,6 +38,8 @@ func assertDefaults(in password: Password, with passwordString: String, and addi
XCTAssertEqual(password.password, passwordString, "Actual passwords do not match.", file: file, line: line)
XCTAssertEqual(password.plainData, fileContent, "Plain data are not equal.", file: file, line: line)
XCTAssertEqual(password.additionsPlainText, additions, "Plain texts are not equal.", file: file, line: line)
XCTAssertEqual(password.numberOfUnknowns, 0, "Number of unknowns is not 0.", file: file, line: line)
XCTAssertEqual(password.numberOfOtpRelated, 0, "Number of OTP related fields is not 0.", file: file, line: line)
XCTAssertEqual(password.otpType, .none, "OTP type is not .none.", file: file, line: line)
}