//
//  LoadingPlaceholderTests.swift
//  SportsTimeTests
//

import Testing
import SwiftUI
@testable import SportsTime

struct LoadingPlaceholderTests {

    @Test func rectangleHasCorrectDimensions() {
        let rect = LoadingPlaceholder.rectangle(width: 100, height: 20)
        #expect(rect.width == 100)
        #expect(rect.height == 20)
    }

    @Test func circleHasCorrectDiameter() {
        let circle = LoadingPlaceholder.circle(diameter: 40)
        #expect(circle.diameter == 40)
    }

    @Test func capsuleHasCorrectDimensions() {
        let capsule = LoadingPlaceholder.capsule(width: 80, height: 24)
        #expect(capsule.width == 80)
        #expect(capsule.height == 24)
    }

    @Test func animationCycleDurationIsCorrect() {
        #expect(LoadingPlaceholder.animationDuration == 1.2)
    }

    @Test func opacityRangeIsSubtle() {
        #expect(LoadingPlaceholder.minOpacity == 0.3)
        #expect(LoadingPlaceholder.maxOpacity == 0.5)
    }
}
