mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-25 17:12:23 +01:00
24 lines
375 B
Swift
24 lines
375 B
Swift
|
//
|
||
|
// NodeTests.swift
|
||
|
//
|
||
|
//
|
||
|
// Created by Brent Simmons on 5/18/24.
|
||
|
//
|
||
|
|
||
|
import XCTest
|
||
|
import Tree
|
||
|
|
||
|
final class NodeTests: XCTestCase {
|
||
|
|
||
|
private final class TestClass {}
|
||
|
|
||
|
@MainActor func testNodeIsRootNode() {
|
||
|
|
||
|
var node = Node(representedObject: TestClass(), parent: nil)
|
||
|
XCTAssertTrue(node.isRoot)
|
||
|
|
||
|
node = Node.genericRootNode()
|
||
|
XCTAssertTrue(node.isRoot)
|
||
|
}
|
||
|
}
|