Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo.moya@xamarin.com>2019-08-20 19:49:14 +0300
committerRodrigo Moya <rodrigo.moya@xamarin.com>2019-08-21 14:23:54 +0300
commitfd80154765cf75cc504f98d28ff016565bbb31c4 (patch)
tree02302a81aa1990159ff0e60d5983f7d89d2e1c76 /main/tests/test-projects
parent0d7b99fd6e147e1758a17f92c0162e1b6c2f0f59 (diff)
[FileNesting] Add tests to ASP.NET Core addin
Now file nesting only works on specific project types, so the previous ones, which were using a console application, were failing as no file nesting was being applied.
Diffstat (limited to 'main/tests/test-projects')
-rw-r--r--main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30.sln17
-rw-r--r--main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/Program.cs25
-rw-r--r--main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/Properties/launchSettings.json27
-rw-r--r--main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/Startup.cs37
-rw-r--r--main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/appsettings.Development.json9
-rw-r--r--main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/appsettings.json10
-rw-r--r--main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/aspnetcore-empty-30.csproj8
7 files changed, 133 insertions, 0 deletions
diff --git a/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30.sln b/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30.sln
new file mode 100644
index 0000000000..bebb4b37d1
--- /dev/null
+++ b/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30.sln
@@ -0,0 +1,17 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "aspnetcore-empty-30", "aspnetcore-empty-30\aspnetcore-empty-30.csproj", "{B179B42C-2702-4E1C-958A-0EF44CEDD11B}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B179B42C-2702-4E1C-958A-0EF44CEDD11B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B179B42C-2702-4E1C-958A-0EF44CEDD11B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B179B42C-2702-4E1C-958A-0EF44CEDD11B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B179B42C-2702-4E1C-958A-0EF44CEDD11B}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/Program.cs b/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/Program.cs
new file mode 100644
index 0000000000..acc5f7a032
--- /dev/null
+++ b/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/Program.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.Hosting;
+using Microsoft.Extensions.Logging;
+
+namespace aspnetcore_empty_30
+{
+ public class Program
+ {
+ public static void Main (string[] args)
+ {
+ CreateHostBuilder (args).Build ().Run ();
+ }
+
+ public static IHostBuilder CreateHostBuilder (string[] args) =>
+ Host.CreateDefaultBuilder (args)
+ .ConfigureWebHostDefaults (webBuilder => {
+ webBuilder.UseStartup<Startup> ();
+ });
+ }
+}
diff --git a/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/Properties/launchSettings.json b/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/Properties/launchSettings.json
new file mode 100644
index 0000000000..79a17e656c
--- /dev/null
+++ b/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/Properties/launchSettings.json
@@ -0,0 +1,27 @@
+{
+ "iisSettings": {
+ "windowsAuthentication": false,
+ "anonymousAuthentication": true,
+ "iisExpress": {
+ "applicationUrl": "http://localhost:30229",
+ "sslPort": 44355
+ }
+ },
+ "profiles": {
+ "IIS Express": {
+ "commandName": "IISExpress",
+ "launchBrowser": true,
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "aspnetcore_empty_30": {
+ "commandName": "Project",
+ "launchBrowser": true,
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ },
+ "applicationUrl": "https://localhost:5001;http://localhost:5000"
+ }
+ }
+} \ No newline at end of file
diff --git a/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/Startup.cs b/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/Startup.cs
new file mode 100644
index 0000000000..694e2cefc8
--- /dev/null
+++ b/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/Startup.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.AspNetCore.Http;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
+
+namespace aspnetcore_empty_30
+{
+ public class Startup
+ {
+ // This method gets called by the runtime. Use this method to add services to the container.
+ // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
+ public void ConfigureServices (IServiceCollection services)
+ {
+ }
+
+ // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
+ public void Configure (IApplicationBuilder app, IWebHostEnvironment env)
+ {
+ if (env.IsDevelopment ()) {
+ app.UseDeveloperExceptionPage ();
+ }
+
+ app.UseRouting ();
+
+ app.UseEndpoints (endpoints => {
+ endpoints.MapGet ("/", async context => {
+ await context.Response.WriteAsync ("Hello World!");
+ });
+ });
+ }
+ }
+}
diff --git a/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/appsettings.Development.json b/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/appsettings.Development.json
new file mode 100644
index 0000000000..bce5e0829c
--- /dev/null
+++ b/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/appsettings.Development.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Debug",
+ "System": "Information",
+ "Microsoft": "Information"
+ }
+ }
+}
diff --git a/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/appsettings.json b/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/appsettings.json
new file mode 100644
index 0000000000..7bdb7c7db3
--- /dev/null
+++ b/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/appsettings.json
@@ -0,0 +1,10 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft": "Warning",
+ "Microsoft.Hosting.Lifetime": "Information"
+ }
+ },
+ "AllowedHosts": "*"
+}
diff --git a/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/aspnetcore-empty-30.csproj b/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/aspnetcore-empty-30.csproj
new file mode 100644
index 0000000000..d21d3e1aef
--- /dev/null
+++ b/main/tests/test-projects/aspnetcore-empty-30/aspnetcore-empty-30/aspnetcore-empty-30.csproj
@@ -0,0 +1,8 @@
+<Project Sdk="Microsoft.NET.Sdk.Web">
+
+ <PropertyGroup>
+ <TargetFramework>netcoreapp3.0</TargetFramework>
+ <RootNamespace>aspnetcore_empty_30</RootNamespace>
+ </PropertyGroup>
+
+</Project>