Пример #1
0
        public void IsValidFileName_BadExtension_ReturnsFalse()
        {
            analyzer = LogAnalyzerFactory.MakeAnalyzer();// object factory
            bool result = analyzer.IsValidLogFileName("filename.foo");

            Assert.AreEqual(false, result);
        }
Пример #2
0
        public void IsValidFileName_WhenCalled_ChangesWasLastFileNameValid(string fileName, bool expected)
        {
            LogAnalyzer1 analyzer = new LogAnalyzer1();

            analyzer.IsValidLogFileName(fileName);
            Assert.AreEqual(expected, analyzer.WasLastFileNameValid);
        }
Пример #3
0
        public void IsValidLogFileName_GoodExtensionUppercase_ReturnsTrue()
        {
            bool result = analyzer.IsValidLogFileName("filename.SLF");

            Assert.AreEqual(true, result);
        }