예제 #1
0
        public void EndTestCase()
        {
            if (_currentTestCasesLog == null)
            {
                throw new InvalidOperationException("6");
            }

            _currentTestCasesLog = null;
        }
예제 #2
0
        public void AddTestCase(object[] arguments, string displayName)
        {
            if (_currentTestCasesLog != null)
            {
                _currentTestCasesLog = null; // todo ten problem można tak rozwiązać  by kolejne testy się nie wywalały - przemyśleć
                throw new InvalidOperationException("7");
            }

            _currentTestCasesLog = new TestCasesLog(arguments, displayName);
            TestCases.Add(_currentTestCasesLog);
        }
예제 #3
0
 public EndDescription(TestCasesLog logEntry, LogEntry currentLogEntry)
 {
     _logEntry        = logEntry;
     _currentLogEntry = currentLogEntry;
 }