diff --git a/Directory.Packages.props b/Directory.Packages.props index 30d26f0a..41f7e055 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -13,8 +13,8 @@ - - + + diff --git a/src/Chapter05.Tests/Listing05.21.PassingAVariableParameterList.Tests.cs b/src/Chapter05.Tests/Listing05.21.PassingAVariableParameterList.Tests.cs index eaf4f9eb..b40a9f38 100644 --- a/src/Chapter05.Tests/Listing05.21.PassingAVariableParameterList.Tests.cs +++ b/src/Chapter05.Tests/Listing05.21.PassingAVariableParameterList.Tests.cs @@ -20,6 +20,6 @@ public void Main_WritePath() //C:\Data\HomeDir\index.html"; IntelliTect.TestTools.Console.ConsoleAssert.Expect(view, - Program.Main); + PathEx.Main); } } diff --git a/src/Chapter05/Listing05.21.PassingAVariableParameterList.cs b/src/Chapter05/Listing05.21.PassingAVariableParameterList.cs index d3918a3e..bc597d42 100644 --- a/src/Chapter05/Listing05.21.PassingAVariableParameterList.cs +++ b/src/Chapter05/Listing05.21.PassingAVariableParameterList.cs @@ -4,7 +4,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_21; using System; using System.IO; -public class Program +public class PathEx { public static void Main() { @@ -48,7 +48,7 @@ static string Combine(params string[] paths) #endregion HIGHLIGHT { string result = string.Empty; - foreach(string path in paths) + foreach (string path in paths) { result = Path.Combine(result, path); }