Ejemplo n.º 1
0
        public void ShouldLogInitialState()
        {
            _target.ReportInitialState();

            // Verify the right oneline logger is called for each status
            _mutantKilledLogger.Verify(x => x.StartLog("Killed:   {0}", It.Is <object[]>(y => y.Length == 1 && (int)y.First() == 0)));
            _mutantSurvivedLogger.Verify(x => x.StartLog("Survived: {0}", It.Is <object[]>(y => y.Length == 1 && (int)y.First() == 0)));
            _mutantTimeoutLogger.Verify(x => x.StartLog("Timeout:  {0}", It.Is <object[]>(y => y.Length == 1 && (int)y.First() == 0)));
        }