Esempio n. 1
0
        public void CheckIfBuildFailedFromLogFile(string logFilePath, bool buildFailed)
        {
            TcProjectBuilder tcProject      = new TcProjectBuilder("../");
            string           logFileContent = File.ReadAllText(logFilePath);
            bool             actual         = tcProject.BuildFailed(logFileContent);

            Assert.Equal(buildFailed, actual);
        }
Esempio n. 2
0
        public void CheckIfBuildFailedFromLogFile(string logFile, bool buildFailed)
        {
            string logFileContent = File.ReadAllText(
                Path.Combine(testDataDirectory, logFile)
                );
            bool actual = TcProjectBuilder.BuildFailed(logFileContent);

            Assert.Equal(buildFailed, actual);
        }