Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: experimental/visual_studio_plugin/src/NaClVsx.Package/NaClVsx.Package_IntegrationTestProject/PackageTest.cs

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 System;
7 using Google.NaClVsx;
8 using Microsoft.VisualStudio.Shell.Interop;
9 using Microsoft.VisualStudio.TestTools.UnitTesting;
10 using Microsoft.VSSDK.Tools.VsIdeTesting;
11
12 namespace IntegrationTestProject {
13 /// <summary>
14 /// Integration test for package validation
15 /// </summary>
16 [TestClass]
17 public class PackageTest {
18 /// <summary>
19 ///Gets or sets the test context which provides
20 ///information about and functionality for the current test run.
21 ///</summary>
22 public TestContext TestContext { get; set; }
23
24 [TestMethod]
25 [HostType("VS IDE")]
26 public void PackageLoadTest() {
27 UIThreadInvoker.Invoke((ThreadInvoker) delegate {
28 //Get the Shell Service
29 var shellService =
30 VsIdeTestHostContext.
31 ServiceProvider.
32 GetService(
33 typeof (SVsShell)) as
34 IVsShell;
35 Assert.IsNotNull(shellService);
36
37 //Validate package load
38 IVsPackage package;
39 var packageGuid =
40 new Guid(
41 GuidList.
42 kGuidNaClVsxPackagePk gString);
43 Assert.IsTrue(0 ==
44 shellService.
45 LoadPackage(
46 ref packageGuid ,
47 out package));
48 Assert.IsNotNull(package,
49 "Package failed to load");
50 });
51 }
52
53 #region Nested type: ThreadInvoker
54
55 private delegate void ThreadInvoker();
56
57 #endregion
58 }
59 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698