You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Verify.Fixie/Execution/ExecutionState.cs
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,10 @@ public static ExecutionState Current
25
25
26
26
thrownew(
27
27
"""
28
-
No State found. Ensure a class inheriting from VerifyTestProject exists in the test project.
29
-
public class TestProject :
30
-
VerifyTestProject;
28
+
No State found. Fixie leaves test execution up to the consumer, so Verify needs a class in the test project implementing Fixie's ITestProject and IExecution:
29
+
* ITestProject.Configure must call VerifierSettings.AssignTargetAssembly(environment.Assembly)
30
+
* IExecution.Run must wrap each test.Run in `using (ExecutionState.Set(testClass, test, parameters))`
31
+
See https://github.com/VerifyTests/Verify/blob/main/docs/mdsource/fixie-convention.include.md for a full example.
Copy file name to clipboardExpand all lines: src/Verify.MSTest.SourceGenerator.Tests/GlobalNamespaceTests.HasAssemblyAttributeAndCustomTestClassAttribute.verified.txt
Copy file name to clipboardExpand all lines: src/Verify.MSTest.SourceGenerator.Tests/GlobalNamespaceTests.HasBothAssemblyAndClassAttributes.verified.txt
Copy file name to clipboardExpand all lines: src/Verify.MSTest.SourceGenerator.Tests/InheritanceTests.HasAssemblyAttributeAndTestClassInheritance.verified.txt
Copy file name to clipboardExpand all lines: src/Verify.MSTest.SourceGenerator.Tests/InheritanceTests.HasAssemblyAttributeWithTestClassOnDerivedAndMarkerAttributeOnBase.verified.txt
0 commit comments