NetNewsWire/Modules/Tree/Tests/TreeTests/NodeTests.swift
2024-07-06 21:07:05 -07:00

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)
}
}