OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright 2009 The Native Client Authors. All rights reserved. | |
3 * Use of this source code is governed by a BSD-style license that can | |
4 * be found in the LICENSE file. | |
5 */ | |
6 using Microsoft.VisualStudio.Shell.Interop; | |
7 using Microsoft.VisualStudio.TestTools.UnitTesting; | |
8 using Microsoft.VsSDK.IntegrationTestLibrary; | |
9 using Microsoft.VSSDK.Tools.VsIdeTesting; | |
10 | |
11 namespace IntegrationTests { | |
12 [TestClass] | |
13 public class SolutionTests { | |
14 #region fields | |
15 | |
16 private delegate void ThreadInvoker(); | |
17 | |
18 #endregion | |
19 | |
20 #region properties | |
21 | |
22 /// <summary> | |
23 ///Gets or sets the test context which provides | |
24 ///information about and functionality for the current test run. | |
25 ///</summary> | |
26 public TestContext TestContext { get; set; } | |
27 | |
28 #endregion | |
29 | |
30 #region ctors | |
31 | |
32 #endregion | |
33 | |
34 [TestMethod] | |
35 [HostType("VS IDE")] | |
36 public void CreateEmptySolution() { | |
37 UIThreadInvoker.Invoke((ThreadInvoker) delegate { | |
38 var testUtils = new TestUtils(); | |
39 testUtils.CloseCurrentSolution( | |
40 __VSSLNSAVEOPTIONS. | |
41 SLNSAVEOPT_NoSave); | |
42 testUtils.CreateEmptySolution( | |
43 TestContext.TestDir, | |
44 "CreateEmptySolution"); | |
45 }); | |
46 } | |
47 } | |
48 } | |
OLD | NEW |