Skip to content

Commit

Permalink
Merge branch 'main' into use-IsTextFile-to-respect-text-file-conventi…
Browse files Browse the repository at this point in the history
…on-from-EmptyFiles
  • Loading branch information
SimonCropp committed Jan 13, 2025
2 parents 2720269 + c74312e commit acb4704
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 2 additions & 0 deletions docs/mdsource/naming.source.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ snippet: AccessNamerRuntimeAndVersion
* `type`: The class the test method exists in.
* `method`: The test method.

Any value provided in [UseDirectory](#directory) will take precedence over the value provided in `PathInfo.Directory`.

Return null to any of the values to use the standard behavior. The returned path can be relative to the directory sourceFile exists in.

`DerivePathInfo` can also be useful when deriving the storage directory on a [build server](build-server.md#custom-directory-and-file-name)
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<NoWarn>CA1822;CS1591;CS0649;xUnit1026;xUnit1013;CS1573;VerifyTestsProjectDir;VerifySetParameters;PolyFillTargetsForNuget</NoWarn>
<Version>28.8.1</Version>
<Version>28.9.0</Version>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>preview</LangVersion>
<AssemblyVersion>1.0.0</AssemblyVersion>
Expand Down
10 changes: 0 additions & 10 deletions src/Verify/DerivePaths/PathInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,4 @@ public static PathInfo DeriveDefault(
methodName: method.Name);

#endregion

internal static PathInfo DeriveDefault(
string sourceFile,
string projectDirectory,
string typeName,
string methodName) =>
new(
directory: IoHelpers.ResolveDirectoryFromSourceFile(sourceFile),
typeName: typeName,
methodName: methodName);
}

0 comments on commit acb4704

Please sign in to comment.