Skip to content

Commit

Permalink
Modified the accessibility modifier of ProductVersionParser to intern…
Browse files Browse the repository at this point in the history
…al + code cleanup
  • Loading branch information
t4m45 committed Dec 28, 2024
1 parent 4c06da3 commit 23bdeb4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;

namespace System.IO.Abstractions.TestingHelpers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace System.IO.Abstractions.TestingHelpers
/// <summary>
/// Provides functionality to parse a product version string into its major, minor, build, and private parts.
/// </summary>
public static class ProductVersionParser
internal static class ProductVersionParser
{
/// <summary>
/// Parses a product version string and extracts the numeric values for the major, minor, build, and private parts,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace System.IO.Abstractions.TestingHelpers.Tests
{
Expand Down Expand Up @@ -39,7 +35,7 @@ public void MockFileVersionInfoFactory_GetVersionInfo_ShouldThrowFileNotFoundExc

// Act
TestDelegate code = () => fileSystem.FileVersionInfo.GetVersionInfo(@"c:\foo.txt");

// Assert
Assert.Throws<FileNotFoundException>(code);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using NUnit.Framework;
using System.Collections;

namespace System.IO.Abstractions.TestingHelpers.Tests
{
Expand Down

0 comments on commit 23bdeb4

Please sign in to comment.