Warnings through Chapter16
MODIFY
src/Chapter16.Tests/Listing16.03.Tests.cs
src/Chapter16.Tests/Listing16.03.Tests.cs
@@ -14,10 +14,10 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter16.Listing16_03.Tests
[TestMethod]
public void ProjectionWithLinqsSelect_TuplesWithinQueryExpressions()
{
- ProjectionWithLinqsSelect(Listing16_03.Program.Main);
+ ProgramTests.ProjectionWithLinqsSelect(Listing16_03.Program.Main);
}
- public void ProjectionWithLinqsSelect(Action mainAction)
+ public static void ProjectionWithLinqsSelect(Action mainAction)
{
int expectedItemCount = Directory.EnumerateFiles(
Directory.GetCurrentDirectory(), "*").Count();

MODIFY
src/Chapter16.Tests/Listing16.11.Tests.cs
src/Chapter16.Tests/Listing16.11.Tests.cs
@@ -10,9 +10,9 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter16.Listing16_11.Tests
[TestMethod]
public void SelectingFollowingGroupClause_UsingTuple()
{
- SelectingFollowingGroupClause(Listing16_11.Program.Main);
+ ProgramTests.SelectingFollowingGroupClause(Listing16_11.Program.Main);
}
- public void SelectingFollowingGroupClause(Action _)
+ public static void SelectingFollowingGroupClause(Action _)
{
string expected = $@"
Keywords:

MODIFY
src/Chapter16.Tests/Listing16.12.Tests.cs
src/Chapter16.Tests/Listing16.12.Tests.cs
@@ -10,10 +10,10 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter16.Listing16_12.Tests
[TestMethod]
public void SelectingFollowingGroupClause_UsingTuple()
{
- SelectingFollowingGroupClause(Listing16_12.Program.Main);
+ ProgramTests.SelectingFollowingGroupClause(Listing16_12.Program.Main);
}
- public void SelectingFollowingGroupClause(Action _)
+ public static void SelectingFollowingGroupClause(Action _)
{
string expected = $@"
Keywords:

MODIFY
src/Chapter16/Listing16.05.DeferredExecutionAndQueryExpressions2.cs
src/Chapter16/Listing16.05.DeferredExecutionAndQueryExpressions2.cs
@@ -55,7 +55,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter16.Listing16_05
// Retrieve the count from the cached collection
Console.WriteLine(
- $"7. selectionCache count={ selectionCache.Count() }");
+ $"7. selectionCache count={ selectionCache.Count }");
Console.WriteLine(
$"8. delegateInvocations={ delegateInvocations }");

Warnings through Chapter16