public void PerformSomeAction_LogsMessage_WhenActionSuccessfullyCompletes() { var vm = new Example1(); vm.PerformSomeAction(); var expectedValue = Example1.JobCompleteMessage; var actualValue = File.ReadAllLines(Example1.LogFile).Last(); Assert.AreEqual(expectedValue, actualValue); }