public void IsValidLogFileName3_WhenCalled_ReturnExpectedValue(string fileName, bool isValid) { var manager = new FakeFileExtensionManager(); var logAnalyzer = new LogAnalyzer(); manager.WillBeValid = isValid; var result = logAnalyzer.IsValidLogFileName3(fileName, manager); Assert.That(result, Is.EqualTo(isValid)); }
public void SetUp() { _manager = new FakeFileExtensionManager(); _logAnalyzer = new LogAnalyzer(_manager); }