Skip to content

Commit b71eb7d

Browse files
committed
Update Readme.md
1 parent c174361 commit b71eb7d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ public sealed class ApplicationTests : RevitApiTest
113113
## Document testing
114114

115115
Tests that pass alone but fail together are a classic sign of shared state. Give each test its own document — created in `[Before(Test)]`, closed in `[After(Test)]` — and that problem disappears entirely.
116-
Use the setup hook to seed the document with exactly the state each test needs.
116+
Use the setup hook to seed the document with exactly the state each test needs. Feel free to use `[Before(Class)]` hook for read-only tests.
117+
117118
The `[HookExecutor<RevitThreadExecutor>]` attribute ensures hooks also run on Revit's thread:
118119

119120
```csharp

0 commit comments

Comments
 (0)