Skip to content

Commit e86c62a

Browse files
fix: Rename Program to PathEx (#816)
1 parent b62b2e8 commit e86c62a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Directory.Packages.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.MSTest" Version="1.1.1" />
1414
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="9.0.3" />
1515
<PackageVersion Include="Microsoft.Extensions.Logging.Debug" Version="9.0.3" />
16-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
17-
<PackageVersion Include="MSTest.TestAdapter" Version="3.2.2" />
16+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
17+
<PackageVersion Include="MSTest.TestAdapter" Version="3.8.3" />
1818
<PackageVersion Include="MSTest.TestFramework" Version="3.8.3" />
1919
<PackageVersion Include="System.Linq.Async" Version="6.0.1" />
2020
<PackageVersion Include="System.Reflection" Version="4.3.0" />

src/Chapter05.Tests/Listing05.21.PassingAVariableParameterList.Tests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public void Main_WritePath()
2020
//C:\Data\HomeDir\index.html";
2121

2222
IntelliTect.TestTools.Console.ConsoleAssert.Expect(view,
23-
Program.Main);
23+
PathEx.Main);
2424
}
2525
}

src/Chapter05/Listing05.21.PassingAVariableParameterList.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_21;
44
using System;
55
using System.IO;
66

7-
public class Program
7+
public class PathEx
88
{
99
public static void Main()
1010
{
@@ -48,7 +48,7 @@ static string Combine(params string[] paths)
4848
#endregion HIGHLIGHT
4949
{
5050
string result = string.Empty;
51-
foreach(string path in paths)
51+
foreach (string path in paths)
5252
{
5353
result = Path.Combine(result, path);
5454
}

0 commit comments

Comments
 (0)