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

Unified Diff: experimental/visual_studio_plugin/src/NaClVsx.Package/NaClVsx.Package_IntegrationTestProject/SignOff-Tests/VBProjectTests.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 side-by-side diff with in-line comments
Download patch
Index: experimental/visual_studio_plugin/src/NaClVsx.Package/NaClVsx.Package_IntegrationTestProject/SignOff-Tests/VBProjectTests.cs
diff --git a/experimental/visual_studio_plugin/src/NaClVsx.Package/NaClVsx.Package_IntegrationTestProject/SignOff-Tests/VBProjectTests.cs b/experimental/visual_studio_plugin/src/NaClVsx.Package/NaClVsx.Package_IntegrationTestProject/SignOff-Tests/VBProjectTests.cs
deleted file mode 100644
index 92852c235ba5bb9759a07df7ebe9a2cc21238b90..0000000000000000000000000000000000000000
--- a/experimental/visual_studio_plugin/src/NaClVsx.Package/NaClVsx.Package_IntegrationTestProject/SignOff-Tests/VBProjectTests.cs
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * Copyright 2009 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can
- * be found in the LICENSE file.
- */
-using System;
-using EnvDTE;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using Microsoft.VsSDK.IntegrationTestLibrary;
-using Microsoft.VSSDK.Tools.VsIdeTesting;
-
-namespace IntegrationTests {
- [TestClass]
- public class VisualBasicProjectTests {
- #region fields
-
- private delegate void ThreadInvoker();
-
- #endregion
-
- #region properties
-
- /// <summary>
- ///Gets or sets the test context which provides
- ///information about and functionality for the current test run.
- ///</summary>
- public TestContext TestContext { get; set; }
-
- #endregion
-
- #region ctors
-
- #endregion
-
- #region Additional test attributes
-
- //
- // You can use the following additional attributes as you write your tests:
- //
- // Use ClassInitialize to run code before running the first test in the class
- // [ClassInitialize()]
- // public static void MyClassInitialize(TestContext testContext) { }
- //
- // Use ClassCleanup to run code after all tests in a class have run
- // [ClassCleanup()]
- // public static void MyClassCleanup() { }
- //
- // Use TestInitialize to run code before running each test
- // [TestInitialize()]
- // public void MyTestInitialize() { }
- //
- // Use TestCleanup to run code after each test has run
- // [TestCleanup()]
- // public void MyTestCleanup() { }
- //
-
- #endregion
-
- [TestMethod]
- public void VBWinformsApplication() {
- UIThreadInvoker.Invoke((ThreadInvoker) delegate {
- //Solution and project creation parameters
- string solutionName =
- "CreateVBWinformsApplication";
- string projectName =
- "VBWindowsApp";
-
- //Template parameters
- string language = "VisualBasic";
- string projectTemplateName =
- "WindowsApplication.Zip";
- string itemTemplateName =
- "CodeFile.zip";
- string newFileName = "Test.vb";
-
- var dte =
- (DTE)
- VsIdeTestHostContext.
- ServiceProvider.
- GetService(typeof (DTE));
-
- var testUtils = new TestUtils();
-
- testUtils.CreateEmptySolution(
- TestContext.TestDir,
- solutionName);
- Assert.AreEqual(0,
- testUtils.
- ProjectCount());
-
- //Add new Windows application project to existing solution
- testUtils.
- CreateProjectFromTemplate(
- projectName,
- projectTemplateName,
- language,
- false);
-
- //Verify that the new project has been added to the solution
- Assert.AreEqual(1,
- testUtils.
- ProjectCount());
-
- //Get the project
- Project project =
- dte.Solution.Item(1);
- Assert.IsNotNull(project);
- Assert.IsTrue(
- string.Compare(project.Name,
- projectName,
- StringComparison
- .
- InvariantCultureIgnoreCase) ==
- 0);
-
- //Verify Adding new code file to project
- ProjectItem newCodeFileItem =
- testUtils.
- AddNewItemFromVsTemplate(
- project.ProjectItems,
- itemTemplateName,
- language,
- newFileName);
- Assert.IsNotNull(
- newCodeFileItem,
- "Could not create new project item");
- });
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698