Skip to content

Commit 2d282d2

Browse files
committed
Removed uncompiled cs test files. Got Insights netcore tests building and running.
1 parent 2712d1c commit 2d282d2

9 files changed

+38
-433
lines changed

src/Azure.PowerShell.Netcore.Test.sln

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.KeyVault.Test.Netc
3737
EndProject
3838
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Rbac.Netcore", "Common\Commands.Common.Graph.RBAC\Common.Rbac.Netcore.csproj", "{E1DE9947-4044-41D3-BE5A-067F75D75B7D}"
3939
EndProject
40+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Insights.Test.Netcore", "ResourceManager\Insights\Commands.Insights.Test\Commands.Insights.Test.Netcore.csproj", "{B097AB81-F9DA-4142-8DDE-BE87D5635D56}"
41+
EndProject
4042
Global
4143
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4244
Debug|Any CPU = Debug|Any CPU
@@ -251,6 +253,18 @@ Global
251253
{E1DE9947-4044-41D3-BE5A-067F75D75B7D}.Release|x64.Build.0 = Release|Any CPU
252254
{E1DE9947-4044-41D3-BE5A-067F75D75B7D}.Release|x86.ActiveCfg = Release|Any CPU
253255
{E1DE9947-4044-41D3-BE5A-067F75D75B7D}.Release|x86.Build.0 = Release|Any CPU
256+
{B097AB81-F9DA-4142-8DDE-BE87D5635D56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
257+
{B097AB81-F9DA-4142-8DDE-BE87D5635D56}.Debug|Any CPU.Build.0 = Debug|Any CPU
258+
{B097AB81-F9DA-4142-8DDE-BE87D5635D56}.Debug|x64.ActiveCfg = Debug|Any CPU
259+
{B097AB81-F9DA-4142-8DDE-BE87D5635D56}.Debug|x64.Build.0 = Debug|Any CPU
260+
{B097AB81-F9DA-4142-8DDE-BE87D5635D56}.Debug|x86.ActiveCfg = Debug|Any CPU
261+
{B097AB81-F9DA-4142-8DDE-BE87D5635D56}.Debug|x86.Build.0 = Debug|Any CPU
262+
{B097AB81-F9DA-4142-8DDE-BE87D5635D56}.Release|Any CPU.ActiveCfg = Release|Any CPU
263+
{B097AB81-F9DA-4142-8DDE-BE87D5635D56}.Release|Any CPU.Build.0 = Release|Any CPU
264+
{B097AB81-F9DA-4142-8DDE-BE87D5635D56}.Release|x64.ActiveCfg = Release|Any CPU
265+
{B097AB81-F9DA-4142-8DDE-BE87D5635D56}.Release|x64.Build.0 = Release|Any CPU
266+
{B097AB81-F9DA-4142-8DDE-BE87D5635D56}.Release|x86.ActiveCfg = Release|Any CPU
267+
{B097AB81-F9DA-4142-8DDE-BE87D5635D56}.Release|x86.Build.0 = Release|Any CPU
254268
EndGlobalSection
255269
GlobalSection(SolutionProperties) = preSolution
256270
HideSolutionNode = FALSE

src/ResourceManager/Insights/Commands.Insights.Test/Alerts/GetAzureRmAlertRuleTests.cs

Lines changed: 0 additions & 88 deletions
This file was deleted.

src/ResourceManager/Insights/Commands.Insights.Test/Alerts/NewAzureRmAlerRuleWebhookTests.cs

Lines changed: 0 additions & 60 deletions
This file was deleted.

src/ResourceManager/Insights/Commands.Insights.Test/Alerts/NewAzureRmAlertRuleEmailTests.cs

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/ResourceManager/Insights/Commands.Insights.Test/Alerts/RemoveAzureRmAlertRuleTests.cs

Lines changed: 0 additions & 79 deletions
This file was deleted.

src/ResourceManager/Insights/Commands.Insights.Test/Commands.Insights.Test.Netcore.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
<ItemGroup>
2525
<PackageReference Include="Microsoft.Azure.Management.Monitor" Version="0.16.1-preview" />
26-
<PackageReference Include="Moq" Version="4.2.1510.2205" />
2726
</ItemGroup>
2827

2928
<ItemGroup>
@@ -34,6 +33,12 @@
3433
<ProjectReference Include="..\..\Common\Commands.ScenarioTests.ResourceManager.Common\Common.ResourceManager.ScenarioTests.Netcore.csproj" />
3534
</ItemGroup>
3635

36+
<ItemGroup>
37+
<Reference Include="Microsoft.Azure.Commands.Insights">
38+
<HintPath>..\..\..\Package\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Insights.Netcore\Microsoft.Azure.Commands.Insights.dll</HintPath>
39+
</Reference>
40+
</ItemGroup>
41+
3742
<ItemGroup>
3843
<None Update="SessionRecords\**\*.json">
3944
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

src/ResourceManager/Insights/Commands.Insights.Test/Commands.Insights.Test.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@
133133
<Compile Include="Alerts\AddAzureRmMetricAlertRuleTests.cs" />
134134
<Compile Include="Alerts\AddAzureRmWebtestAlertRuleTests.cs" />
135135
<Compile Include="Alerts\GetAzureRmAlertHistoryTests.cs" />
136-
<None Include="Alerts\GetAzureRmAlertRuleTests.cs" />
137-
<None Include="Alerts\NewAzureRmAlerRuleWebhookTests.cs" />
138-
<None Include="Alerts\NewAzureRmAlertRuleEmailTests.cs" />
139-
<None Include="Alerts\RemoveAzureRmAlertRuleTests.cs" />
140136
<Compile Include="Autoscale\AddAzureRmAutoscaleSettingTests.cs" />
141137
<Compile Include="Autoscale\GetAzureRmAutoscaleHistoryTests.cs" />
142138
<Compile Include="Autoscale\GetAzureRmAutoscaleSettingTests.cs" />
@@ -149,7 +145,6 @@
149145
<Compile Include="ActivityLogAlerts\EnableAzureRmActivityLogAlertTests.cs" />
150146
<Compile Include="ActivityLogAlerts\GetAzureRmActivityLogAlertTests.cs" />
151147
<Compile Include="ActivityLogAlerts\RemoveAzureRmActivityLogAlertTests.cs" />
152-
<None Include="Diagnostics\RemoveDiagnosticSettingCommandTests.cs" />
153148
<Compile Include="CustomPrinterTests.cs" />
154149
<Compile Include="Diagnostics\SetDiagnosticSettingCommandTests.cs" />
155150
<Compile Include="Diagnostics\GetDiagnosticSettingCommandTests.cs" />

0 commit comments

Comments
 (0)