Skip to content

Commit 6e19e01

Browse files
author
slavara
committed
Merge branch 'master' into develop
2 parents 947475e + 19684d7 commit 6e19e01

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

PostfixCodeCompletion.Tests/Completion/PostfixGeneratorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class GeneratorJob : PostfixGeneratorTests
2121
static string ConvertWinNewlineToUnix(string s) => s.Replace("\r\n", "\n");
2222

2323
static string ReadCode(string fileName) => ConvertWinNewlineToUnix(TestFile.ReadAllText($"PostfixCodeCompletion.Test_Files.generated.as3.{fileName}.as"));
24+
2425
static string ReadSnippet(string fileName) => ConvertWinNewlineToUnix(TestFile.ReadAllText($"PostfixCodeCompletion.Test_Snippets.as3.postfixgenerators.{fileName}.fds"));
2526

2627
protected string Generate(string sourceText, ClassModel type, string template, string pccpattern)
@@ -42,7 +43,6 @@ protected string Generate(string sourceText, ClassModel type, string template, s
4243
return ConvertWinNewlineToUnix(sci.Text);
4344
}
4445

45-
[TestFixture]
4646
public class AS3GeneratorTests : GeneratorJob
4747
{
4848
[OneTimeSetUp]

PostfixCodeCompletion.Tests/PostfixCodeCompletion.Tests.csproj

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
<RootNamespace>PostfixCodeCompletion</RootNamespace>
1212
<AssemblyName>PostfixCodeCompletion.Tests</AssemblyName>
1313
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
14-
<FileAlignment>512</FileAlignment>
15-
<NuGetPackageImportStamp>
16-
</NuGetPackageImportStamp>
1714
</PropertyGroup>
1815
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1916
<DebugSymbols>true</DebugSymbols>
@@ -42,6 +39,7 @@
4239
<PlatformTarget>x86</PlatformTarget>
4340
<ErrorReport>prompt</ErrorReport>
4441
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
42+
<LangVersion>9</LangVersion>
4543
</PropertyGroup>
4644
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
4745
<OutputPath>..\..\..\..\FlashDevelop\Bin\Debug\</OutputPath>
@@ -51,17 +49,21 @@
5149
<PlatformTarget>x86</PlatformTarget>
5250
<ErrorReport>prompt</ErrorReport>
5351
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
52+
<LangVersion>9</LangVersion>
5453
</PropertyGroup>
5554
<ItemGroup>
5655
<Reference Include="Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
5756
<HintPath>..\..\..\..\packages\Castle.Core.4.4.1\lib\net45\Castle.Core.dll</HintPath>
57+
<Private>True</Private>
5858
</Reference>
5959
<Reference Include="Microsoft.CSharp" />
6060
<Reference Include="NSubstitute, Version=4.2.0.0, Culture=neutral, PublicKeyToken=92dd2e9066daa5ca, processorArchitecture=MSIL">
6161
<HintPath>..\..\..\..\packages\NSubstitute.4.2.2\lib\net46\NSubstitute.dll</HintPath>
62+
<Private>True</Private>
6263
</Reference>
6364
<Reference Include="nunit.framework, Version=3.12.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
6465
<HintPath>..\..\..\..\packages\NUnit.3.12.0\lib\net45\nunit.framework.dll</HintPath>
66+
<Private>True</Private>
6567
</Reference>
6668
<Reference Include="System" />
6769
<Reference Include="System.Configuration" />
@@ -195,25 +197,32 @@
195197
<Name>PluginCore</Name>
196198
<Private>False</Private>
197199
</ProjectReference>
198-
<ProjectReference Include="..\..\..\..\Tests\External\Plugins\ASCompletion.Tests\ASCompletion.Tests.csproj">
199-
<Project>{ABC71D26-295C-4C6C-B6DE-320AD49EEF79}</Project>
200-
<Name>ASCompletion.Tests</Name>
201-
</ProjectReference>
202200
<ProjectReference Include="..\..\ASCompletion\ASCompletion.csproj">
203201
<Project>{4EBF2653-9654-4E40-880E-0046B3D6210E}</Project>
204202
<Name>ASCompletion</Name>
205203
<Private>False</Private>
206204
</ProjectReference>
205+
<ProjectReference Include="..\..\..\..\Tests\External\Plugins\ASCompletion.Tests\ASCompletion.Tests.csproj">
206+
<Project>{ABC71D26-295C-4C6C-B6DE-320AD49EEF79}</Project>
207+
<Name>ASCompletion.Tests</Name>
208+
<Private>False</Private>
209+
</ProjectReference>
207210
<ProjectReference Include="..\PostfixCodeCompletion\PostfixCodeCompletion.csproj">
208211
<Project>{e511b03b-81fd-4c39-b587-211f2a1603a1}</Project>
209212
<Name>PostfixCodeCompletion</Name>
213+
<Private>False</Private>
210214
</ProjectReference>
211215
</ItemGroup>
216+
<ItemGroup>
217+
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
218+
</ItemGroup>
212219
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
220+
<Import Project="..\..\..\..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('..\..\..\..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
213221
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
214222
<PropertyGroup>
215223
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
216224
</PropertyGroup>
225+
<Error Condition="!Exists('..\..\..\..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets'))" />
217226
<Error Condition="!Exists('..\..\..\..\packages\NUnit.3.12.0\build\NUnit.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\NUnit.3.12.0\build\NUnit.props'))" />
218227
</Target>
219228
</Project>

appveyor.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ environment:
1313
FD_PATH: C:\projects\FlashDevelop
1414
FD_EXECUTABLE_DIR: FlashDevelop\Bin\Debug
1515
FD_SETTINGS: C:\Users\appveyor\AppData\Local\FlashDevelop
16-
install:
17-
- set PATH=С:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin;%PATH%
1816
version: $(PLUGIN_VERSION).{build}
1917
skip_tags: true
2018
init:
@@ -31,7 +29,7 @@ build_script:
3129
- mkdir %FD_SETTINGS%
3230
- cp -r %FD_PATH%\%FD_EXECUTABLE_DIR%\Settings %FD_SETTINGS%\Settings
3331
- cp -r %FD_PATH%\%FD_EXECUTABLE_DIR%\Snippets %FD_SETTINGS%\Snippets
34-
- nunit-console-x86 %FD_PATH%\%FD_EXECUTABLE_DIR%\%PLUGIN_NAME%.Tests.dll
32+
- nunit3-console.exe %FD_PATH%\%FD_EXECUTABLE_DIR%\%PLUGIN_NAME%.Tests.dll --result=myresults.xml;format=AppVeyor
3533
after_build:
3634
- mkdir %APPVEYOR_BUILD_FOLDER%\$(BaseDir)\Plugins
3735
- mv %PLUGIN_DLL% %APPVEYOR_BUILD_FOLDER%\$(BaseDir)\Plugins\%PLUGIN_NAME%.dll

0 commit comments

Comments
 (0)