Files
ToastKit/Tests/ToastKitTests/EnumsTests.swift
2025-04-18 22:15:53 +04:00

52 lines
1.1 KiB
Swift

//
// EnumsTests.swift
// ToastKit
//
// Created by Despo on 18.04.25.
//
import XCTest
@testable import ToastKit
final class ToastColorTypesTests: XCTestCase {
func testSuccessType() {
XCTAssertEqual(ToastColorTypes.success.value, .green)
}
func testWarninType() {
XCTAssertEqual(ToastColorTypes.warning.value, .yellow)
}
func testErrorType() {
XCTAssertEqual(ToastColorTypes.error.value, .red)
}
func testInfoType() {
XCTAssertEqual(ToastColorTypes.info.value, .blue)
}
func testCustomType() {
XCTAssertEqual(ToastColorTypes.custom(.teal).value, .teal)
}
}
final class ToastDirectionsTests: XCTestCase {
func testLeadingDirection() {
XCTAssertEqual(HorizontalDirection.leading.value, .leading)
}
func testTrailinDirection() {
XCTAssertEqual(HorizontalDirection.trailing.value, .trailing)
}
}
final class VerticalDirectionTests: XCTestCase {
func testTopDirection() {
XCTAssertEqual(VerticalDirection.top.value, .top)
}
func testBottomDirection() {
XCTAssertEqual(VerticalDirection.bottom.value, .bottom)
}
}