CheckZsyncLoop() public method

public CheckZsyncLoop ( Process process, string data, ITransferProgress progress ) : bool
process System.Diagnostics.Process
data string
progress ITransferProgress
return bool
        public void ZsyncLoopCheck() {
            var parser = new ZsyncOutputParser();
            var progress = A.Fake<ITransferProgress>();
            using (var process = Process.Start("cmd.exe")) {
                var result = parser.CheckZsyncLoop(process, "downloading from ", progress);
                result = parser.CheckZsyncLoop(process, "downloading from ", progress);
                result = parser.CheckZsyncLoop(process, "downloading from ", progress);

                result.Should().BeTrue("because it is looping");

                if (!process.HasExited)
                    process.Kill();
            }
        }