Updated from Chapter 6 Tech. Editor comments.
MODIFY
src/Chapter03.Tests/Listing03.01B.Tests.cs
src/Chapter03.Tests/Listing03.01B.Tests.cs
using AddisonWesley.Michaelis.EssentialCSharp.Shared;
using Microsoft.VisualStudio.TestTools.UnitTesting;
+using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter03.Listing03_01B.Tests
@@ -7,6 +8,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter03.Listing03_01B.Tests
[TestClass]
public class UppercaseTests
{
+ [NotNull]
public TestContext? TestContext { get; set; }
[TestMethod]

ADD
src/Chapter03.Tests/Table03.01.Tests.cs
+using AddisonWesley.Michaelis.EssentialCSharp.Shared;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using System.Diagnostics.CodeAnalysis;
+using System.Threading.Tasks;
+
+namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter03.Table03_01.Tests
+{
+ [TestClass]
+ public class UppercaseTests
+ {
+ [NotNull]
+ public TestContext? TestContext { get; set; }
+
+
+ }
+}
\ No newline at end of file

ADD
src/Chapter03.Tests/Table03.02.Tests.cs
+using AddisonWesley.Michaelis.EssentialCSharp.Chapter03.Table03_02;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+
+namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter03.Table03_02.Tests
+{
+ [TestClass]
+ public class ArrayHighlightsTests
+ {
+ [TestMethod]
+ public void Declaration()
+ {
+ ArrayHighlights.Declaration();
+ }
+
+ [TestMethod]
+ public void Assignment()
+ {
+ ArrayHighlights.Assignment();
+ }
+
+ [TestMethod]
+ public void ForwardAndReverseAccessingAnArray()
+ {
+ const string expected = @"TypeScript
+Python";
+
+ IntelliTect.TestTools.Console.ConsoleAssert.Expect(
+ expected, ArrayHighlights.ForwardAndReverseAccessingAnArray);
+ }
+
+ [TestMethod]
+ public void Ranges()
+ {
+ const string expected =
+ @"^3..^0: Python, Lisp, JavaScript
+^3..: Python, Lisp, JavaScript
+ 3..^3: C++, TypeScript, Visual Basic
+ ..^6: C#, COBOL, Java";
+
+ IntelliTect.TestTools.Console.ConsoleAssert.Expect(
+ expected, ArrayHighlights.Ranges);
+ }
+ }
+}
\ No newline at end of file

Updated from Chapter 6 Tech. Editor comments.