TempBasalRecommendationTests.swift 708 B

12345678910111213141516171819202122232425262728
  1. //
  2. // TempBasalRecommendationTests.swift
  3. // LoopKitTests
  4. //
  5. // Created by Darin Krauss on 7/27/19.
  6. // Copyright © 2019 LoopKit Authors. All rights reserved.
  7. //
  8. import XCTest
  9. @testable import LoopKit
  10. class TempBasalRecommendationTests: XCTestCase {
  11. func testCancel() {
  12. let cancel = TempBasalRecommendation.cancel
  13. XCTAssertEqual(cancel.unitsPerHour, 0)
  14. XCTAssertEqual(cancel.duration, 0)
  15. }
  16. func testInitializer() {
  17. let tempBasalRecommendation = TempBasalRecommendation(unitsPerHour: 1.23, duration: 4.56)
  18. XCTAssertEqual(tempBasalRecommendation.unitsPerHour, 1.23)
  19. XCTAssertEqual(tempBasalRecommendation.duration, 4.56)
  20. }
  21. }