Updated chapter 15 tests to ignore empty during split.
MODIFY
src/Chapter15.Tests/Listing15.12.ProjectionWithSystem.Linq.Enumerable.Select.Tests.cs
src/Chapter15.Tests/Listing15.12.ProjectionWithSystem.Linq.Enumerable.Select.Tests.cs
@@ -31,7 +31,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter15.Listing15_12.Tests
});
IEnumerable<string> outputItems = output.Split(
- new string[] { Environment.NewLine }, StringSplitOptions.None);
+ new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
Assert.AreEqual<int>(
expectedItemCount, outputItems.Count());

MODIFY
src/Chapter15.Tests/Listing15.13.ProjectionToTuple.Tests.cs
src/Chapter15.Tests/Listing15.13.ProjectionToTuple.Tests.cs
@@ -23,7 +23,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter15.Listing15_13.Tests
});
IEnumerable<string> outputItems = output.Split(
- new string[] { Environment.NewLine }, StringSplitOptions.None);
+ new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
Assert.AreEqual(expectedItemCount, outputItems.Count());
foreach (string item in outputItems)

MODIFY
src/Chapter15.Tests/Listing15.14.ExecutingLinqQueriesInParallel.Tests.cs
src/Chapter15.Tests/Listing15.14.ExecutingLinqQueriesInParallel.Tests.cs
@@ -22,7 +22,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter15.Listing15_14.Tests
});
IEnumerable<string> outputItems = output.Split(
- new string[] { Environment.NewLine }, StringSplitOptions.None);
+ new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
Assert.AreEqual(expectedItemCount, outputItems.Count());
foreach (string item in outputItems)

MODIFY
src/Chapter15.Tests/Listing15.27.ProjectionToAnAnonymousType.Tests.cs
src/Chapter15.Tests/Listing15.27.ProjectionToAnAnonymousType.Tests.cs
@@ -30,7 +30,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter15.Listing15_27.Tests
});
IEnumerable<string> outputItems = output.Split(
- new string []{Environment.NewLine}, StringSplitOptions.None);
+ new string []{Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries);
Assert.AreEqual(expectedItemCount, outputItems.Count());
foreach (string item in outputItems)

Updated chapter 15 tests to ignore empty during split.