Fix Chapter 4.07 manuscript and sc discrepencies
MODIFY
src/Chapter04.Tests/Listing04.07.UnexpectedInequality.Tests.cs
src/Chapter04.Tests/Listing04.07.UnexpectedInequality.Tests.cs
@@ -8,7 +8,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter04.Listing04_07.Tests
[TestMethod]
public void MainTest()
{
- const string netCoreApp2expected =
+ const string netCoreApp3expected =
@"4.2 != 4.2000002861023
4.2 != 4.20000028610229
(float)4.2M != 4.2F
@@ -29,7 +29,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter04.Listing04_07.Tests
string netCoreVersion = NetCore.GetNetCoreVersion();
if (string.Compare(netCoreVersion, "3") < 0)
{
- expected = netCoreApp2expected;
+ expected = netCoreApp3expected;
}
IntelliTect.TestTools.Console.ConsoleAssert.Expect(

MODIFY
src/Chapter04/Listing04.07.UnexpectedInequality.cs
src/Chapter04/Listing04.07.UnexpectedInequality.cs
@@ -9,8 +9,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter04.Listing04_07
double doubleNumber2 = 0.1D * 42D;
float floatNumber = 0.1F * 42F;
-
- // 1. Displays: 4.2 != 4.4.2000002861023
+ // 1. Displays: 4.2 != 4.2000002861023
System.Console.WriteLine(
$"{decimalNumber} != {(decimal)doubleNumber1}");

Fix Chapter 4.07 manuscript and sc discrepencies