Skip to content

Commit ebae026

Browse files
committed
vsconfig generation is now installation specific
1 parent ace41ed commit ebae026

File tree

4 files changed

+196
-70
lines changed

4 files changed

+196
-70
lines changed

Packages/com.unity.ide.visualstudio.tests/Tests/Editor/CSProjectTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ public void WontSynchronize_WhenNoFilesChanged()
233233
var synchronizer = m_Builder.Build();
234234

235235
synchronizer.Sync();
236-
Assert.AreEqual(3, m_Builder.WriteTimes, "3 writes for solution + csproj + .vsconfig");
236+
Assert.AreEqual(2, m_Builder.WriteTimes, "2 writes for solution + csproj");
237237

238238
synchronizer.Sync();
239-
Assert.AreEqual(3, m_Builder.WriteTimes, "No more files should be written");
239+
Assert.AreEqual(2, m_Builder.WriteTimes, "No more files should be written");
240240
}
241241

242242
[Test]

Packages/com.unity.ide.visualstudio.tests/Tests/Editor/SolutionTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ public void ContentWithoutChanges_WhenSynced_DoesNotReSync()
4646
var synchronizer = m_Builder.Build();
4747

4848
synchronizer.Sync();
49-
Assert.AreEqual(3, m_Builder.WriteTimes); // 3 writes for csproj / solution / .vsconfig
49+
Assert.AreEqual(2, m_Builder.WriteTimes); // 2 writes for csproj / solution
5050

5151
synchronizer.Sync();
52-
Assert.AreEqual(3, m_Builder.WriteTimes, "When content doesn't change we shouldn't re-sync");
52+
Assert.AreEqual(2, m_Builder.WriteTimes, "When content doesn't change we shouldn't re-sync");
5353
}
5454

5555
[Test]
@@ -58,12 +58,12 @@ public void AssemblyChanged_AfterSync_PerformsReSync()
5858
var synchronizer = m_Builder.Build();
5959

6060
synchronizer.Sync();
61-
Assert.AreEqual(3, m_Builder.WriteTimes); // 3 writes for csproj / solution / .vsconfig
61+
Assert.AreEqual(2, m_Builder.WriteTimes); // 2 writes for csproj / solution
6262

6363
m_Builder.WithAssemblies(new[] { new Assembly("Another", "path/to/Assembly.dll", new[] { "file.cs" }, new string[0], new Assembly[0], new string[0], AssemblyFlags.None) });
6464

6565
synchronizer.Sync();
66-
Assert.AreEqual(3 + 2, m_Builder.WriteTimes, "Should only re-sync the solution file and the 'Another' csproj");
66+
Assert.AreEqual(2 + 2, m_Builder.WriteTimes, "Should only re-sync the solution file and the 'Another' csproj");
6767
}
6868

6969
[Test]

0 commit comments

Comments
 (0)