Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }