Updated tests in Chapter 8.
MODIFY
src/Chapter08.Tests/Listing08.15.ProtectedInterfaceMembers.Tests.cs
src/Chapter08.Tests/Listing08.15.ProtectedInterfaceMembers.Tests.cs
-using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter08.Listing08_15.Tests
@@ -12,9 +11,9 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter08.Listing08_15.Tests
string expected = @"Invoking ((IExecuteProcessActivity)activity).Run()...
IWorkflowActivity.Start()...
ExecuteProcessActivity.RedirectStandardInOut()...
-ExecuteProcessActivity.IExecuteProcessActivity.ExecutProcess()...
+ExecuteProcessActivity.IExecuteProcessActivity.ExecuteProcess()...
IExecuteProcessActivity.RestoreStandardInOut()...
-IWorkflowActivity.Stop()..
+IWorkflowActivity.Stop()...
Invoking activity.Run()...
Executing non-polymorphic Run() with process 'dotnet'.";

MODIFY
src/Chapter08.Tests/UndersandingAccessModifiers.Tests.cs
src/Chapter08.Tests/UndersandingAccessModifiers.Tests.cs
@@ -81,7 +81,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter08.UndersatndingAccessM
item!.GetMethod()!.DeclaringType!.Assembly == Assembly.GetExecutingAssembly()
).Where(
item =>
- !item!.GetMethod()!.DeclaringType!.Name!.EndsWith(".Tests")
+ !item!.GetMethod()!.DeclaringType!.Name!.EndsWith("Tests")
).Select(
item => $"{item!.GetMethod()!.ReflectedType!.Name}.{item.GetMethod()!.Name.Replace($"{item!.GetMethod()!.ReflectedType!.Namespace}.", "")}").Reverse().ToArray();
return string.Join("=>", frames);
@@ -130,7 +130,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter08.UndersatndingAccessM
string.Join("=>",
new string[]{
$"{nameof(Information)}.{nameof(Information.CallConcreteInterfaceMethod3)}",
- $"{nameof(ISampleInterface)}.{nameof(ISampleInterface.PublicConcreteInterfaceMethod)}"
+ $"{nameof(Information)}.{nameof(ISampleInterface.PublicConcreteInterfaceMethod)}"
}),
information.CallConcreteInterfaceMethod3());
}
@@ -140,7 +140,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter08.UndersatndingAccessM
{
Information information = new Information();
Assert.AreEqual(
- $"{nameof(ISampleInterface)}.{nameof(ISampleInterface.PublicConcreteInterfaceMethod)}",
+ $"{nameof(Information)}.{nameof(ISampleInterface.PublicConcreteInterfaceMethod)}",
((ISampleInterface)information).PublicConcreteInterfaceMethod());
}
@@ -158,7 +158,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter08.UndersatndingAccessM
{
ISampleInterface information = new SubClass();
Assert.AreEqual(
- $"{nameof(ISampleInterface)}.{nameof(ISampleInterface.PublicConcreteInterfaceMethod)}",
+ $"{nameof(Information)}.{nameof(ISampleInterface.PublicConcreteInterfaceMethod)}",
information.PublicConcreteInterfaceMethod());
}
}

MODIFY
src/Chapter08/Listing08.15.ForcingTheDesirableRunSemantics.cs
src/Chapter08/Listing08.15.ForcingTheDesirableRunSemantics.cs
@@ -28,7 +28,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter08.Listing08_15
// Private and, therefore, not virtual
private void Stop() =>
Console.WriteLine(
- "IWorkflowActivity.Stop()..");
+ "IWorkflowActivity.Stop()...");
}
public interface IExecuteProcessActivity : IWorkflowActivity

Updated tests in Chapter 8.