NetNewsWire/Modules/Tree/Tests/TreeTests/NodeTests.swift

24 lines
375 B
Swift
Raw Normal View History

2024-05-19 07:37:58 +02:00
//
// 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)
}
}