mirror of
https://github.com/Desp0o/ToastKit.git
synced 2026-06-17 14:34:30 +00:00
52 lines
1.1 KiB
Swift
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)
|
|
}
|
|
}
|