Remove Listing 9.17 and Renumber
DELETE
src/Chapter09.Tests/Listing09.17.ConvertingAStringToAnEnumUsingEnum.Parse.Tests.cs
-namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_17.Tests;
-
-[TestClass]
-public class ProgramTests
-{
- [TestMethod]
- public void Main_CastThreadLevelPriorityEnumToString()
- {
- const string expected = "Idle";
-
- IntelliTect.TestTools.Console.ConsoleAssert.Expect(
- expected, Program.Main);
- }
-}

RENAME
src/Chapter09.Tests/Listing09.18.ConvertingAStringToAnEnumUsingEnum.TryParse.Tests.cs
src/Chapter09.Tests/Listing09.17.ConvertingAStringToAnEnumUsingEnum.TryParse.Tests.cs
-namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_18.Tests;
+namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_17.Tests;
[TestClass]
public class ProgramTests

RENAME
src/Chapter09.Tests/Listing09.20.UsingBitwiseORandANDWithFlagEnums.Tests.cs
src/Chapter09.Tests/Listing09.19.UsingBitwiseORandANDWithFlagEnums.Tests.cs
using System.Runtime.InteropServices;
-namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_20.Tests;
+namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_19.Tests;
[TestClass]
public class ProgramTests

RENAME
src/Chapter09.Tests/Listing09.22.UsingFlagsAttribute.Tests.cs
src/Chapter09.Tests/Listing09.21.UsingFlagsAttribute.Tests.cs
using System.Runtime.InteropServices;
-namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_22.Tests;
+namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_21.Tests;
[TestClass]
public class ProgramTests

DELETE
src/Chapter09/Listing09.17.ConvertingAStringToAnEnumUsingEnum.Parse.cs
-namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_17;
-
-using System;
-using System.Diagnostics;
-
-public class Program
-{
- public static void Main()
- {
- #region INCLUDE
- ThreadPriorityLevel priority = (ThreadPriorityLevel)Enum.Parse(
- typeof(ThreadPriorityLevel), "Idle");
- Console.WriteLine(priority);
- #endregion INCLUDE
- }
-}

RENAME
src/Chapter09/Listing09.18.ConvertingAStringToAnEnumUsingEnum.TryParse.cs
src/Chapter09/Listing09.17.ConvertingAStringToAnEnumUsingEnum.TryParse.cs
-namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_18;
+namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_17;
using System;

RENAME
src/Chapter09/Listing09.19.UsingEnumsAsFlags.cs
src/Chapter09/Listing09.18.UsingEnumsAsFlags.cs
-namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_19;
+namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_18;
using System;

RENAME
src/Chapter09/Listing09.20.UsingBitwiseORandANDWithFlagEnums.cs
src/Chapter09/Listing09.19.UsingBitwiseORandANDWithFlagEnums.cs
-namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_20;
+namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_19;
#region INCLUDE
using System;

RENAME
src/Chapter09/Listing09.21.DefiningEnumValuesforFrequentCombinations.cs
src/Chapter09/Listing09.20.DefiningEnumValuesforFrequentCombinations.cs
-namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_21;
+namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_20;
using System;
#region INCLUDE

RENAME
src/Chapter09/Listing09.22.UsingFlagsAttribute.cs
src/Chapter09/Listing09.21.UsingFlagsAttribute.cs
-namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_22;
+namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_21;
#region INCLUDE
//FileAttributes are defined in System.IO

Remove Listing 9.17 and Renumber