You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Replace xunit + coverlet with TUnit test framework
- Update test project files to use TUnit package references
- Add Microsoft.Testing.Platform runner config to global.json
- Update CI test command for TUnit MTP compatibility
- Convert all test classes and assertions to TUnit syntax
- Add [NotInParallel] to tests using shared SQLite state
- Use IsEquivalentTo for collection comparisons
Assert.Contains(sections, s =>s.Header=="Beginner Topic: What Is a Method?"&&string.Join("\n",s.Content).Contains("Syntactically, a **method** in C# is a named block of code"));
48
-
Assert.Contains(sections, s =>s.Header=="Main Method"&&string.Join("\n",s.Content).Contains("The location where C# programs begin execution is the **Main method**, which begins with `static void Main()`")
Assert.Contains(sections, s =>s.Header=="Main Method: Advanced Topic: Declaration of the Main Method"&&string.Join("\n",s.Content).Contains("C# requires that the Main method return either `void` or `int`"));
45
+
awaitAssert.That(sections).Count().IsEqualTo(3);
46
+
awaitAssert.That(sections).Contains(s =>s.Header=="Beginner Topic: What Is a Method?"&&string.Join("\n",s.Content).Contains("Syntactically, a **method** in C# is a named block of code"));
47
+
48
+
awaitAssert.That(sections).Contains(s =>s.Header=="Main Method"&&string.Join("\n",s.Content).Contains("The location where C# programs begin execution is the **Main method**, which begins with `static void Main()`")&&string.Join("\n",s.Content).Contains("publicclass Program"));
49
+
50
+
awaitAssert.That(sections).Contains(s =>s.Header=="Main Method: Advanced Topic: Declaration of the Main Method"&&string.Join("\n",s.Content).Contains("C# requires that the Main method return either `void` or `int`"));
awaitAssert.That(sections).Contains(s =>s.Header=="Beginner Topic: What Is a Data Type?"&&string.Join("\n",s.Content).Contains("The type of data that a variable declaration specifies is called a **data type**"));
147
147
148
-
Assert.Contains(sections, s =>s.Header=="Beginner Topic: What Is a Data Type?"&&string.Join("\n",s.Content).Contains("The type of data that a variable declaration specifies is called a **data type**"));
149
-
Assert.Contains(sections, s =>s.Header=="Declaring a Variable"&&string.Join("\n",s.Content).Contains("In Listing 1.12, `string max` is a variable declaration"));
150
-
Assert.Contains(sections, s =>s.Header=="Declaring a Variable: Declaring another thing"&&string.Join("\n",s.Content).Contains("Because a multivariable declaration statement allows developers to provide the data type only once"));
151
-
Assert.Contains(sections, s =>s.Header=="Assigning a Variable"&&string.Join("\n",s.Content).Contains("After declaring a local variable, you must assign it a value before reading from it."));
152
-
Assert.Contains(sections, s =>s.Header=="Assigning a Variable: Continued Learning"&&string.Join("\n",s.Content).Contains("From this listing, observe that it is possible to assign a variable as part of the variable declaration"));
148
+
awaitAssert.That(sections).Contains(s =>s.Header=="Declaring a Variable"&&string.Join("\n",s.Content).Contains("In Listing 1.12, `string max` is a variable declaration"));
149
+
150
+
awaitAssert.That(sections).Contains(s =>s.Header=="Declaring a Variable: Declaring another thing"&&string.Join("\n",s.Content).Contains("Because a multivariable declaration statement allows developers to provide the data type only once"));
151
+
152
+
awaitAssert.That(sections).Contains(s =>s.Header=="Assigning a Variable"&&string.Join("\n",s.Content).Contains("After declaring a local variable, you must assign it a value before reading from it."));
153
+
154
+
awaitAssert.That(sections).Contains(s =>s.Header=="Assigning a Variable: Continued Learning"&&string.Join("\n",s.Content).Contains("From this listing, observe that it is possible to assign a variable as part of the variable declaration"));
0 commit comments