From aea447175ece641cafd282f76c94a35378e9dbbe Mon Sep 17 00:00:00 2001 From: Philippe Miossec Date: Sun, 8 Feb 2015 16:33:37 +0100 Subject: [PATCH] Cleaning Asserts --- GitTfsTest/Integration/CloneTests.cs | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/GitTfsTest/Integration/CloneTests.cs b/GitTfsTest/Integration/CloneTests.cs index 4dfdb599..6521556d 100644 --- a/GitTfsTest/Integration/CloneTests.cs +++ b/GitTfsTest/Integration/CloneTests.cs @@ -216,21 +216,17 @@ namespace Sep.Git.Tfs.Test.Integration h.TfsUrl = "https://tfs.codeplex.com:443/tfs/TFS16"; h.Run("clone", h.TfsUrl, "$/vtccds/trunk", "Vtccds", "--with-branches"); - AssertNewClone("Vtccds", new[] { "refs/heads/b1" }, commit: "3cdb2a311ac7cbda1e892a9b3371a76c871a696a"); - AssertNewClone("Vtccds", new[] { "refs/heads/b1.1" }, commit: "e6e79221fd35b2002367a41535de9c43b626150a"); - AssertNewClone("Vtccds", new[] { "refs/heads/master" }, commit: "e7d54b14fbdcbbc184d58e82931b7c1ac4a2be70"); - //AssertNewClone("Vtccds", new[] { "refs/remotes/tfs/afterRename" }, commit: "33c183f3f7b26d22a6e3a2688d407a211917b4b4"); - AssertNewClone("Vtccds", new[] { "refs/remotes/tfs/b1" }, commit: "3cdb2a311ac7cbda1e892a9b3371a76c871a696a"); - AssertNewClone("Vtccds", new[] { "refs/remotes/tfs/b1.1" }, commit: "e6e79221fd35b2002367a41535de9c43b626150a"); - AssertNewClone("Vtccds", new[] { "refs/remotes/tfs/default" }, commit: "e7d54b14fbdcbbc184d58e82931b7c1ac4a2be70"); + AssertNewClone("Vtccds", new[] { "refs/heads/master", "refs/remotes/tfs/default" }, commit: "e7d54b14fbdcbbc184d58e82931b7c1ac4a2be70"); + + AssertNewClone("Vtccds", new[] { "refs/heads/b1", "refs/remotes/tfs/b1" }, commit: "3cdb2a311ac7cbda1e892a9b3371a76c871a696a"); + + AssertNewClone("Vtccds", new[] { "refs/heads/b1.1", "refs/remotes/tfs/b1.1" }, commit: "e6e79221fd35b2002367a41535de9c43b626150a"); + + AssertNewClone("Vtccds", new[] { "refs/heads/renameFile", "refs/remotes/tfs/renameFile" }, commit: "003ca02adfd9561418f05a61c7a999386957a146"); - //References to fix to correspond exactly to https://github.com/pmiossec/vtccds - AssertNewClone("Vtccds", new[] { "refs/heads/renameFile" }, commit: "003ca02adfd9561418f05a61c7a999386957a146"); - AssertNewClone("Vtccds", new[] { "refs/remotes/tfs/renameFile" }, commit: "003ca02adfd9561418f05a61c7a999386957a146"); AssertNewClone("Vtccds", new[] { "refs/remotes/tfs/branch_from_nowhere" }, commit: "9cb91c60d76d00af182ae9f16da6e6aa77b88a5e"); - AssertNewClone("Vtccds", new[] { "refs/heads/renamed3" }, commit: "615ac5588d3cb6282c2c7d514f2828ad3aeaf5c7"); - AssertNewClone("Vtccds", new[] { "refs/remotes/tfs/renamed3" }, commit: "615ac5588d3cb6282c2c7d514f2828ad3aeaf5c7"); + AssertNewClone("Vtccds", new[] { "refs/heads/renamed3", "refs/remotes/tfs/renamed3" }, commit: "615ac5588d3cb6282c2c7d514f2828ad3aeaf5c7"); //No refs for renamed branches h.AssertNoRef("Vtccds", "refs/remotes/tfs/renamedTwice");