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.TestTools.UnitTesting; | |
7 using Microsoft.VsSDK.IntegrationTestLibrary; | |
8 using Microsoft.VSSDK.Tools.VsIdeTesting; | |
9 | |
10 namespace IntegrationTests { | |
11 [TestClass] | |
12 public class CSharpProjectTests { | |
13 #region fields | |
14 | |
15 private delegate void ThreadInvoker(); | |
16 | |
17 #endregion | |
18 | |
19 #region properties | |
20 | |
21 /// <summary> | |
22 ///Gets or sets the test context which provides | |
23 ///information about and functionality for the current test run. | |
24 ///</summary> | |
25 public TestContext TestContext { get; set; } | |
26 | |
27 #endregion | |
28 | |
29 #region ctors | |
30 | |
31 #endregion | |
32 | |
33 #region Additional test attributes | |
34 | |
35 // | |
36 // You can use the following additional attributes as you write your tests: | |
37 // | |
38 // Use ClassInitialize to run code before running the first test in the clas
s | |
39 // [ClassInitialize()] | |
40 // public static void MyClassInitialize(TestContext testContext) { } | |
41 // | |
42 // Use ClassCleanup to run code after all tests in a class have run | |
43 // [ClassCleanup()] | |
44 // public static void MyClassCleanup() { } | |
45 // | |
46 // Use TestInitialize to run code before running each test | |
47 // [TestInitialize()] | |
48 // public void MyTestInitialize() { } | |
49 // | |
50 // Use TestCleanup to run code after each test has run | |
51 // [TestCleanup()] | |
52 // public void MyTestCleanup() { } | |
53 // | |
54 | |
55 #endregion | |
56 | |
57 [TestMethod] | |
58 [HostType("VS IDE")] | |
59 public void WinformsApplication() { | |
60 UIThreadInvoker.Invoke((ThreadInvoker) delegate { | |
61 var testUtils = new TestUtils(); | |
62 | |
63 testUtils.CreateEmptySolution( | |
64 TestContext.TestDir, | |
65 "CreateWinformsApplication"); | |
66 Assert.AreEqual(0, | |
67 testUtils. | |
68 ProjectCount(
)); | |
69 | |
70 //Create Winforms application pro
ject | |
71 //TestUtils.CreateProjectFromTemp
late("MyWindowsApp", "Windows Application", "CSharp", false); | |
72 //Assert.AreEqual<int>(1, TestUti
ls.ProjectCount()); | |
73 | |
74 //TODO Verify that we can debug l
aunch the application | |
75 | |
76 //TODO Set Break point and verify
that will hit | |
77 | |
78 //TODO Verify Adding new project
item to project | |
79 }); | |
80 } | |
81 } | |
82 } | |
OLD | NEW |