Skip to content

Commit 23bdeb4

Browse files
committed
Modified the accessibility modifier of ProductVersionParser to internal + code cleanup
1 parent 4c06da3 commit 23bdeb4

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Diagnostics;
2-
using System.Runtime.InteropServices;
32
using System.Text;
43

54
namespace System.IO.Abstractions.TestingHelpers

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace System.IO.Abstractions.TestingHelpers
66
/// <summary>
77
/// Provides functionality to parse a product version string into its major, minor, build, and private parts.
88
/// </summary>
9-
public static class ProductVersionParser
9+
internal static class ProductVersionParser
1010
{
1111
/// <summary>
1212
/// Parses a product version string and extracts the numeric values for the major, minor, build, and private parts,

tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileVersionInfoFactoryTests.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
using NUnit.Framework;
2-
using System;
32
using System.Collections.Generic;
4-
using System.Linq;
5-
using System.Text;
6-
using System.Threading.Tasks;
73

84
namespace System.IO.Abstractions.TestingHelpers.Tests
95
{
@@ -39,7 +35,7 @@ public void MockFileVersionInfoFactory_GetVersionInfo_ShouldThrowFileNotFoundExc
3935

4036
// Act
4137
TestDelegate code = () => fileSystem.FileVersionInfo.GetVersionInfo(@"c:\foo.txt");
42-
38+
4339
// Assert
4440
Assert.Throws<FileNotFoundException>(code);
4541
}

tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileVersionInfoTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using NUnit.Framework;
2-
using System.Collections;
32

43
namespace System.IO.Abstractions.TestingHelpers.Tests
54
{

0 commit comments

Comments
 (0)