From c5e8ab2511e7293eaa4c35abf0bb7db0f8f1b848 Mon Sep 17 00:00:00 2001 From: Sergey Tihon Date: Tue, 29 Mar 2016 13:56:25 +0300 Subject: [PATCH] Improved consistency test for #1552 --- .../Paket.IntegrationTests/InstallSpecs.fs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/integrationtests/Paket.IntegrationTests/InstallSpecs.fs b/integrationtests/Paket.IntegrationTests/InstallSpecs.fs index 7d344427e2..0506f297f5 100644 --- a/integrationtests/Paket.IntegrationTests/InstallSpecs.fs +++ b/integrationtests/Paket.IntegrationTests/InstallSpecs.fs @@ -364,12 +364,20 @@ let ``#1507 allows to download remote dependencies``() = [] let ``#1552 install mvvmlightlibs again``() = - let newLockFile = install "i001552-install-mvvmlightlibs-again" let oldLockFile = LockFile.LoadFrom(Path.Combine(originalScenarioPath "i001552-install-mvvmlightlibs-again","paket.lock")) - newLockFile.ToString() |> normalizeLineEndings |> shouldEqual (oldLockFile.ToString() |> normalizeLineEndings) + let expected = oldLockFile.ToString() |> normalizeLineEndings + + let newLockFile = install "i001552-install-mvvmlightlibs-again" + newLockFile.ToString() |> normalizeLineEndings |> shouldEqual expected let newFile = Path.Combine(scenarioTempPath "i001552-install-mvvmlightlibs-again","CSharp","CSharp.csproj") let oldFile = Path.Combine(originalScenarioPath "i001552-install-mvvmlightlibs-again","CSharp","CSharp.csprojtemplate") let s1 = File.ReadAllText oldFile |> normalizeLineEndings let s2 = File.ReadAllText newFile |> normalizeLineEndings s2 |> shouldEqual s1 + + let newLockFile2 = update "i001552-install-mvvmlightlibs-again" + newLockFile2.ToString() |> normalizeLineEndings |> shouldEqual expected + + let newLockFile3 = install "i001552-install-mvvmlightlibs-again" + newLockFile3.ToString() |> normalizeLineEndings |> shouldEqual expected