| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- //
- // ServiceTests.swift
- // LoopKitTests
- //
- // Created by Darin Krauss on 9/15/19.
- // Copyright © 2019 LoopKit Authors. All rights reserved.
- //
- import XCTest
- @testable import LoopKit
- class ServiceTests: XCTestCase {
- fileprivate var testService: TestService!
- override func setUp() {
- testService = TestService()
- }
- override func tearDown() {
- testService = nil
- }
- func testServiceIdentifier() {
- XCTAssertEqual(testService.pluginIdentifier, "TestService")
- }
- func testLocalizedTitle() {
- XCTAssertEqual(testService.localizedTitle, "Test Service")
- }
- }
- fileprivate class TestError: Error {}
- fileprivate class TestService: Service {
- static var pluginIdentifier: String { return "TestService" }
- static var localizedTitle: String { return "Test Service" }
- public weak var serviceDelegate: ServiceDelegate?
-
- public weak var stateDelegate: StatefulPluggableDelegate?
- init() {}
- required init?(rawState: RawStateValue) { return nil }
- var rawState: RawStateValue { return [:] }
- var isOnboarded = true
- }
|