コード例 #1
0
        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));
        }
コード例 #2
0
 public void SetUp()
 {
     _manager     = new FakeFileExtensionManager();
     _logAnalyzer = new LogAnalyzer(_manager);
 }