Skip to content

Commit d661eb3

Browse files
t4m45vbreuss
authored andcommitted
Added an overload for the constructor of MockFileVersionInfo
1 parent 4282915 commit d661eb3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileVersionInfo.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ public MockFileVersionInfo(
6868
ProductPrivatePart = parsedProductVersion.PrivatePart;
6969
}
7070

71+
/// <inheritdoc />
72+
public MockFileVersionInfo(string fileName)
73+
{
74+
FileName = fileName;
75+
}
76+
7177
/// <inheritdoc/>
7278
public override string FileName { get; }
7379

0 commit comments

Comments
 (0)