这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
6b00aa1
wip
colombod May 21, 2019
e65db29
first green test
colombod May 22, 2019
8b127cc
using pipeline in project asset
colombod May 23, 2019
4ba7900
clear obj folder
colombod May 23, 2019
2d966b1
use pipeline clean up
colombod May 24, 2019
3ff80f7
change the pipeline to load previous build
colombod May 24, 2019
a641141
refactor heuristic for reaload analyzer result
colombod May 24, 2019
83a1037
Merge branch 'master' into feature/project_asset_workspaces
colombod May 28, 2019
5de2776
add ncrunch project settings
colombod May 28, 2019
4138696
add file lock
colombod May 28, 2019
b1fb9e2
remove console work-space copies
colombod May 28, 2019
cb143fa
remove workspace copy invocations
colombod May 28, 2019
261d12f
code clean up
colombod May 28, 2019
4d92335
refactor common code for roslynserver tests
colombod May 28, 2019
412fc17
remove copy
colombod May 28, 2019
8da4b1a
lock file async
colombod May 28, 2019
2db5b19
lock lookup as static field
colombod May 28, 2019
27edaf3
Merge branch 'master' into feature/project_asset_workspaces
colombod May 28, 2019
c4d8069
formatting
colombod May 28, 2019
cfcb52c
fix test
colombod May 28, 2019
2cb9a5a
fix aspnet.webapi run test
colombod May 28, 2019
497bc26
move out copy functionalities
colombod May 29, 2019
c8dbdc4
reuse registry
colombod May 29, 2019
381f239
address PR feedback for null check in compilation utility
colombod May 29, 2019
2a351b8
copies and creation of packages in tests only
colombod May 29, 2019
be20ebb
remove tests that are no longer relevant
colombod May 29, 2019
afab710
change test assertion
colombod May 29, 2019
7f9c1ca
refactor code for console package builder configuration
colombod May 29, 2019
35687ec
skip aspnet.webapi package tests
colombod May 29, 2019
69d3858
address Pr comments
colombod May 29, 2019
7b114bd
PR feedback
colombod May 29, 2019
70736fa
Merge remote-tracking branch 'origin/feature/project_asset_workspaces…
colombod May 29, 2019
5d852b7
remove unused using statement
colombod May 29, 2019
49a1d26
changed test to use default registry
colombod May 29, 2019
08da611
add to dictionary
colombod May 29, 2019
f5fbf28
blazor test commented as runner picks them up, add editor config
colombod May 29, 2019
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
31 changes: 31 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

[*.{c,c++,cc,cp,cpp,cu,cuh,cxx,h,hh,hpp,hxx,inc,inl,ino,ipp,mpp,proto,tpp}]
indent_style=tab
indent_size=tab
tab_width=4

[*.{asax,ascx,aspx,cs,cshtml,css,htm,html,js,jsx,master,razor,skin,ts,tsx,vb,xaml,xamlx,xoml}]
indent_style=space
indent_size=4
tab_width=4

[*.{appxmanifest,build,config,csproj,dbml,discomap,dtd,json,jsproj,lsproj,njsproj,nuspec,proj,props,resjson,resw,resx,StyleCop,targets,tasks,vbproj,xml,xsd}]
indent_style=space
indent_size=2
tab_width=2

[*]

# Microsoft .NET properties
csharp_new_line_before_members_in_object_initializers=false
csharp_preferred_modifier_order=public, private, protected, internal, new, abstract, virtual, sealed, override, static, readonly, extern, unsafe, volatile, async:suggestion
csharp_style_var_elsewhere=true:hint
csharp_style_var_for_built_in_types=true:hint
csharp_style_var_when_type_is_apparent=true:hint
dotnet_style_predefined_type_for_locals_parameters_members=true:hint
dotnet_style_predefined_type_for_member_access=true:hint
dotnet_style_qualification_for_event=false:warning
dotnet_style_qualification_for_field=false:warning
dotnet_style_qualification_for_method=false:warning
dotnet_style_qualification_for_property=false:warning
dotnet_style_require_accessibility_modifiers=for_non_interface_members:hint
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*.user
*.userosscache
*.sln.docstates
*NCrunch*
.trydotnet-*

# User-specific files (MonoDevelop/Xamarin Studio)
Expand Down
2 changes: 2 additions & 0 deletions DotNetTry.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UserDictionary/Words/=trydotnet/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
6 changes: 6 additions & 0 deletions DotNetTry.v3.ncrunchsolution
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<SolutionConfiguration>
<Settings>
<AllowParallelTestExecution>True</AllowParallelTestExecution>
<SolutionConfigured>True</SolutionConfigured>
</Settings>
</SolutionConfiguration>
30 changes: 10 additions & 20 deletions MLS.Agent.Tests/ApiContracts/ApiOutputContractTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
using Microsoft.DotNet.Try.Protocol;
using Microsoft.DotNet.Try.Protocol.Tests;
using Recipes;
using WorkspaceServer.Tests;
using Xunit;
using Xunit.Abstractions;
using Package = WorkspaceServer.Packaging.Package;

namespace MLS.Agent.Tests.ApiContracts
{
Expand All @@ -31,12 +29,11 @@ public ApiOutputContractTests(ITestOutputHelper output) : base(output)
[Fact]
public async Task The_Run_contract_for_compiling_code_has_not_been_broken()
{
var package = await Package.Copy(await Default.ConsoleWorkspace());
var viewport = ViewportCode();

var requestJson = new WorkspaceRequest(
new Workspace(
workspaceType: package.Name,
workspaceType: "console",
buffers: new[]
{
EntrypointCode(),
Expand All @@ -55,12 +52,11 @@ public async Task The_Run_contract_for_compiling_code_has_not_been_broken()
[Fact]
public async Task The_Run_contract_for_noncompiling_code_has_not_been_broken()
{
var package = await Package.Copy(await Default.ConsoleWorkspace());
var viewport = ViewportCode("doesn't compile");

var request = new WorkspaceRequest(
new Workspace(
workspaceType: package.Name,
workspaceType: "console",
buffers: new[]
{
EntrypointCode(),
Expand All @@ -81,12 +77,11 @@ public async Task The_Run_contract_for_noncompiling_code_has_not_been_broken()
[Fact]
public async Task The_Compile_contract_for_compiling_code_has_not_been_broken()
{
var package = await Package.Copy(await Default.ConsoleWorkspace());
var viewport = ViewportCode();

var requestJson = new WorkspaceRequest(
new Workspace(
workspaceType: package.Name,
workspaceType: "console",
buffers: new[]
{
EntrypointCode(),
Expand Down Expand Up @@ -116,12 +111,11 @@ public async Task The_Compile_contract_for_compiling_code_has_not_been_broken()
[Fact]
public async Task The_Compile_contract_for_noncompiling_code_has_not_been_broken()
{
var package = await Package.Copy(await Default.ConsoleWorkspace());
var viewport = ViewportCode("doesn't compile");

var request = new WorkspaceRequest(
new Workspace(
workspaceType: package.Name,
workspaceType: "console",
buffers: new[]
{
EntrypointCode(),
Expand All @@ -142,12 +136,11 @@ public async Task The_Compile_contract_for_noncompiling_code_has_not_been_broken
[Fact]
public async Task The_Completions_contract_has_not_been_broken()
{
var package = await Package.Copy(await Default.ConsoleWorkspace());
var viewport = ViewportCode("Console.Ou$$");

var requestJson = new WorkspaceRequest(
new Workspace(
workspaceType: package.Name,
workspaceType: "console",
buffers: new[]
{
EntrypointCode(),
Expand All @@ -166,12 +159,11 @@ public async Task The_Completions_contract_has_not_been_broken()
[Fact]
public async Task The_signature_help_contract_has_not_been_broken()
{
var package = await Package.Copy(await Default.ConsoleWorkspace());
var viewport = ViewportCode("Console.Write($$);");

var requestJson = new WorkspaceRequest(
new Workspace(
workspaceType: package.Name,
workspaceType: "console",
buffers: new[]
{
EntrypointCode(),
Expand All @@ -190,10 +182,9 @@ public async Task The_signature_help_contract_has_not_been_broken()
[Fact]
public async Task The_instrumentation_contract_has_not_been_broken()
{
var package = await Package.Copy(await Default.ConsoleWorkspace());
var requestJson = new WorkspaceRequest(
new Workspace(
workspaceType: package.Name,
workspaceType: "console",
buffers: new[]
{
EntrypointCode("int a = 1; int b = 2; a = 3; b = a;")
Expand All @@ -212,10 +203,9 @@ public async Task The_instrumentation_contract_has_not_been_broken()
[Fact]
public async Task The_run_contract_with_no_instrumentation_has_not_been_broken()
{
var package = await Package.Copy(await Default.ConsoleWorkspace());
var requestJson = new WorkspaceRequest(
new Workspace(
workspaceType: package.Name,
workspaceType: "console",
buffers: new[]
{
EntrypointCode("int a = 1; int b = 2; a = 3; b = a;")
Expand Down Expand Up @@ -248,7 +238,7 @@ public static void Main()
}}
}}".EnforceLF();

MarkupTestFile.GetPosition(input, out string output, out var position);
MarkupTestFile.GetPosition(input, out var output, out var position);

return new Buffer(
"Program.cs",
Expand Down Expand Up @@ -282,7 +272,7 @@ public static object Method()
}}
}}".EnforceLF();

MarkupTestFile.GetPosition(input, out string output, out var position);
MarkupTestFile.GetPosition(input, out var output, out var position);

return new Buffer(
"ViewportCode.cs",
Expand Down
Loading