DailyView/Carthage/Checkouts/facebook-ios-sdk/FBSDKGamingServicesKit/FBSDKGamingServicesKitTests/Internal/CustomUpdateLocalizedTextTests.swift
2025-12-30 16:40:31 +08:00

26 lines
717 B
Swift

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
@testable import FBSDKGamingServicesKit
import XCTest
final class CustomUpdateLocalizedTextTests: XCTestCase {
let fakeLocalization = ["es_pa": "spanish"]
func testIntilization() {
let text = CustomUpdateLocalizedText(defaultString: "test", localizations: fakeLocalization)
XCTAssertNotNil(text)
XCTAssertEqual(text?.localizations, fakeLocalization)
}
func testIntilizationWithEmptyString() {
XCTAssertNil(CustomUpdateLocalizedText(defaultString: "", localizations: [:]))
}
}