Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new test cases for "ASP.NET Dynamic Data Linq to SQL Web Site" project into Daily Tests pipeline #6209

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 21 additions & 18 deletions test/NuGet.Tests.Apex/NuGet.Tests.Apex.Daily/NuGetUITestCase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ public NuGetUITestCase()
}

[TestMethod]
[DataRow(ProjectTemplate.WebSiteEmpty)]
[DataRow(ProjectTemplate.WebSite)]
[DataRow(ProjectTemplate.WebSiteRazorV3)]
[DataRow(ProjectTemplate.WebSiteDynamicDataEntityFramework)]
[DataRow(ProjectTemplate.WebSiteEmpty, ProjectTargetFramework.V48)]
[DataRow(ProjectTemplate.WebSite, ProjectTargetFramework.V48)]
[DataRow(ProjectTemplate.WebSiteRazorV3, ProjectTargetFramework.V48)]
[DataRow(ProjectTemplate.WebSiteDynamicDataEntityFramework, ProjectTargetFramework.V48)]
[DataRow(ProjectTemplate.WebSiteDynamicDataLinqToSql, ProjectTargetFramework.V452)]
[Timeout(DefaultTimeout)]
public async Task InstallPackageToWebSiteProjectFromUI(ProjectTemplate projectTemplate)
public async Task InstallPackageToWebSiteProjectFromUI(ProjectTemplate projectTemplate, ProjectTargetFramework projectTargetFramework)
{
// Arrange
await CommonUtility.CreatePackageInSourceAsync(_pathContext.PackageSource, TestPackageName, TestPackageVersionV1);
Expand All @@ -41,7 +42,7 @@ public async Task InstallPackageToWebSiteProjectFromUI(ProjectTemplate projectTe

SolutionService solutionService = VisualStudio.Get<SolutionService>();
solutionService.CreateEmptySolution("TestSolution", _pathContext.SolutionRoot);
ProjectTestExtension project = solutionService.AddProject(ProjectLanguage.CSharp, projectTemplate, ProjectTargetFramework.V48, "TestProject");
ProjectTestExtension project = solutionService.AddProject(ProjectLanguage.CSharp, projectTemplate, projectTargetFramework, "TestProject");

VisualStudio.ClearOutputWindow();
solutionService.SaveAll();
Expand All @@ -56,12 +57,13 @@ public async Task InstallPackageToWebSiteProjectFromUI(ProjectTemplate projectTe
}

[TestMethod]
[DataRow(ProjectTemplate.WebSiteEmpty)]
[DataRow(ProjectTemplate.WebSite)]
[DataRow(ProjectTemplate.WebSiteRazorV3)]
[DataRow(ProjectTemplate.WebSiteDynamicDataEntityFramework)]
[DataRow(ProjectTemplate.WebSiteEmpty, ProjectTargetFramework.V48)]
[DataRow(ProjectTemplate.WebSite, ProjectTargetFramework.V48)]
[DataRow(ProjectTemplate.WebSiteRazorV3, ProjectTargetFramework.V48)]
[DataRow(ProjectTemplate.WebSiteDynamicDataEntityFramework, ProjectTargetFramework.V48)]
[DataRow(ProjectTemplate.WebSiteDynamicDataLinqToSql, ProjectTargetFramework.V452)]
[Timeout(DefaultTimeout)]
public async Task UpdateWebSitePackageFromUI(ProjectTemplate projectTemplate)
public async Task UpdateWebSitePackageFromUI(ProjectTemplate projectTemplate, ProjectTargetFramework projectTargetFramework)
{
// Arrange
await CommonUtility.CreatePackageInSourceAsync(_pathContext.PackageSource, TestPackageName, TestPackageVersionV1);
Expand All @@ -71,7 +73,7 @@ public async Task UpdateWebSitePackageFromUI(ProjectTemplate projectTemplate)

SolutionService solutionService = VisualStudio.Get<SolutionService>();
solutionService.CreateEmptySolution("TestSolution", _pathContext.SolutionRoot);
ProjectTestExtension project = solutionService.AddProject(ProjectLanguage.CSharp, projectTemplate, ProjectTargetFramework.V48, "TestProject");
ProjectTestExtension project = solutionService.AddProject(ProjectLanguage.CSharp, projectTemplate, projectTargetFramework, "TestProject");

VisualStudio.ClearOutputWindow();
solutionService.SaveAll();
Expand All @@ -88,12 +90,13 @@ public async Task UpdateWebSitePackageFromUI(ProjectTemplate projectTemplate)
}

[TestMethod]
[DataRow(ProjectTemplate.WebSiteEmpty)]
[DataRow(ProjectTemplate.WebSite)]
[DataRow(ProjectTemplate.WebSiteRazorV3)]
[DataRow(ProjectTemplate.WebSiteDynamicDataEntityFramework)]
[DataRow(ProjectTemplate.WebSiteEmpty, ProjectTargetFramework.V48)]
[DataRow(ProjectTemplate.WebSite, ProjectTargetFramework.V48)]
[DataRow(ProjectTemplate.WebSiteRazorV3, ProjectTargetFramework.V48)]
[DataRow(ProjectTemplate.WebSiteDynamicDataEntityFramework, ProjectTargetFramework.V48)]
[DataRow(ProjectTemplate.WebSiteDynamicDataLinqToSql, ProjectTargetFramework.V452)]
[Timeout(DefaultTimeout)]
public async Task UninstallWebSitePackageFromUI(ProjectTemplate projectTemplate)
public async Task UninstallWebSitePackageFromUI(ProjectTemplate projectTemplate, ProjectTargetFramework projectTargetFramework)
{
// Arrange
await CommonUtility.CreatePackageInSourceAsync(_pathContext.PackageSource, TestPackageName, TestPackageVersionV1);
Expand All @@ -102,7 +105,7 @@ public async Task UninstallWebSitePackageFromUI(ProjectTemplate projectTemplate)

SolutionService solutionService = VisualStudio.Get<SolutionService>();
solutionService.CreateEmptySolution("TestSolution", _pathContext.SolutionRoot);
ProjectTestExtension project = solutionService.AddProject(ProjectLanguage.CSharp, projectTemplate, ProjectTargetFramework.V48, "TestProject");
ProjectTestExtension project = solutionService.AddProject(ProjectLanguage.CSharp, projectTemplate, projectTargetFramework, "TestProject");

VisualStudio.ClearOutputWindow();
solutionService.SaveAll();
Expand Down