Exemplo n.º 1
0
        public void TestSummary()
        {
            string path    = GetTemporaryPath();
            string file    = Path.Combine(path, "foo");
            string summary = string.Empty;

            CommandClient.Initialize(path, MercurialPath);

            using (var client = new CommandClient(path, null, null, MercurialPath)) {
                File.WriteAllText(file, "1");
                client.Add(file);
                client.Commit("1", null, false, false, null, null, null, null, "user");
                summary = client.Summary(false);
            }

            Assert.IsTrue(summary.Contains("branch: default"));
        }