diff --git a/src/Chapter06/Listing06.06.AccessingFields.cs b/src/Chapter06/Listing06.06.AccessingFields.cs index ecf72ac02..791cb207e 100644 --- a/src/Chapter06/Listing06.06.AccessingFields.cs +++ b/src/Chapter06/Listing06.06.AccessingFields.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter06.Listing06_06; +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter06.Listing06_06; using Listing06_05; using System; diff --git a/src/Chapter09.Tests/Listing09.16.OverridingToString.Tests.cs b/src/Chapter09.Tests/Listing09.16.OverridingToString.Tests.cs index 5d697db0b..06d4fcc6e 100644 --- a/src/Chapter09.Tests/Listing09.16.OverridingToString.Tests.cs +++ b/src/Chapter09.Tests/Listing09.16.OverridingToString.Tests.cs @@ -1,4 +1,4 @@ -namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_16.Tests; +namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_16.Tests; using AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_16; @@ -12,8 +12,8 @@ public void Override_ToString_MatchesExpectedValue() Angle angle1 = new(120, 20, 20, "AngleName"); Angle angle2 = new(320, 10, 10, null); - string expected1 = $"AngleName: 120� 20' 20\""; - string expected2 = $"320� 10' 10\""; + string expected1 = $"AngleName: 120° 20' 20\""; + string expected2 = $"320° 10' 10\""; string actual1 = angle1.ToString(); string actual2 = angle2.ToString(); diff --git a/src/Chapter09/Listing09.16.OverridingToString.cs b/src/Chapter09/Listing09.16.OverridingToString.cs index ec26dc1dc..704c850aa 100644 --- a/src/Chapter09/Listing09.16.OverridingToString.cs +++ b/src/Chapter09/Listing09.16.OverridingToString.cs @@ -19,7 +19,7 @@ public override string ToString() { string prefix = string.IsNullOrWhiteSpace(Name) ? string.Empty : Name + ": "; - return $"{prefix}{Degrees}� {Minutes}' {Seconds}\""; + return $"{prefix}{Degrees}° {Minutes}' {Seconds}\""; } #endregion INCLUDE }