Added back Chapter 11.Tests project (not sure where it went).
MODIFY
EssentialCSharp.sln
EssentialCSharp.sln
@@ -106,6 +106,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Chapter21", "src\Chapter21\
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Chapter21.Tests", "src\Chapter21.Tests\Chapter21.Tests.csproj", "{54AB095B-2810-4FE6-8C62-50BB6A2321D7}"
EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Chapter11.Tests", "src\Chapter11.Tests\Chapter11.Tests.csproj", "{FC54D6EE-7E91-4FE7-8C40-EFAE83633505}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -608,6 +610,18 @@ Global
{54AB095B-2810-4FE6-8C62-50BB6A2321D7}.Release|x64.Build.0 = Release|Any CPU
{54AB095B-2810-4FE6-8C62-50BB6A2321D7}.Release|x86.ActiveCfg = Release|Any CPU
{54AB095B-2810-4FE6-8C62-50BB6A2321D7}.Release|x86.Build.0 = Release|Any CPU
+ {FC54D6EE-7E91-4FE7-8C40-EFAE83633505}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FC54D6EE-7E91-4FE7-8C40-EFAE83633505}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FC54D6EE-7E91-4FE7-8C40-EFAE83633505}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {FC54D6EE-7E91-4FE7-8C40-EFAE83633505}.Debug|x64.Build.0 = Debug|Any CPU
+ {FC54D6EE-7E91-4FE7-8C40-EFAE83633505}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {FC54D6EE-7E91-4FE7-8C40-EFAE83633505}.Debug|x86.Build.0 = Debug|Any CPU
+ {FC54D6EE-7E91-4FE7-8C40-EFAE83633505}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FC54D6EE-7E91-4FE7-8C40-EFAE83633505}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FC54D6EE-7E91-4FE7-8C40-EFAE83633505}.Release|x64.ActiveCfg = Release|Any CPU
+ {FC54D6EE-7E91-4FE7-8C40-EFAE83633505}.Release|x64.Build.0 = Release|Any CPU
+ {FC54D6EE-7E91-4FE7-8C40-EFAE83633505}.Release|x86.ActiveCfg = Release|Any CPU
+ {FC54D6EE-7E91-4FE7-8C40-EFAE83633505}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

MODIFY
src/Chapter11.Tests/Listing11.01.ThrowingAnException.Tests.cs
src/Chapter11.Tests/Listing11.01.ThrowingAnException.Tests.cs
@@ -11,7 +11,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter11.Listing11_01.Tests
[ExpectedException(typeof(ArgumentNullException))]
public void Parse_GivenNull_ThrowsArgumentNullException()
{
- TextNumberParser.Parse(null);
+ TextNumberParser.Parse(null!);
}
[TestMethod]

RENAME
src/Chapter10.Tests/Listing10.02A.Tests.cs
src/Chapter11.Tests/Listing11.02A.Tests.cs
using System;
using System.ComponentModel;
-namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter10.Listing10_02A.Tests
+namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter11.Listing11_02A.Tests
{
[TestClass]
public class ProgramTests
@@ -10,7 +10,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter10.Listing10_02A.Tests
[TestMethod]
public void MainTest()
{
- Assert.ThrowsException<Win32Exception>(() => Program.Main(null));
+ Assert.ThrowsException<Win32Exception>(() => Program.Main(null!));
}
}
}
\ No newline at end of file

Added back Chapter 11.Tests project (not sure where it went).