Exemplo n.º 1
0
        public void Test_RequiresBuild_False()
        {
            new FilesGrabber(
                OriginalDirectory,
                WorkingDirectory
                ).GrabOriginalFiles();

            var checker = new SolutionBuildChecker();

            // Update the time stamps so it doesn't appear to need a rebuild
            new FileTimeStampManager().Update(CurrentDirectory);

            Assert.IsFalse(checker.RequiresBuild(CurrentDirectory));
        }
Exemplo n.º 2
0
    public bool CheckForBuild()
    {
        var ensurer = new SolutionBuildChecker();

        if (ensurer.RequiresBuild(CurrentDirectory))
        {
            ensurer.Build(CurrentDirectory, "Release");     // TODO: Make build mode configurable
            return(true);
        }
        else
        {
            return(false);
        }
    }
Exemplo n.º 3
0
        public void Test_RequiresBuild_True()
        {
            new FilesGrabber(
                OriginalDirectory,
                WorkingDirectory
                ).GrabOriginalFiles();

            var checker = new SolutionBuildChecker();

            var timeStampsFile = PathConverter.ToAbsolute("src/TimeStamps.txt");

            if (File.Exists(timeStampsFile))
            {
                File.Delete(timeStampsFile);
            }

            Assert.IsTrue(checker.RequiresBuild(CurrentDirectory));
        }