public void EndTestCase() { if (_currentTestCasesLog == null) { throw new InvalidOperationException("6"); } _currentTestCasesLog = null; }
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); }
public EndDescription(TestCasesLog logEntry, LogEntry currentLogEntry) { _logEntry = logEntry; _currentLogEntry = currentLogEntry; }