Skip to content

Commit fb918a6

Browse files
author
dragonfly91
committed
Added dummy test
1 parent d9998a2 commit fb918a6

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Test/Commands.RecoveryServices.Backup.Test.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
<Reference Include="Microsoft.CSharp" />
6363
<Reference Include="System.Data" />
6464
<Reference Include="System.Xml" />
65+
<Reference Include="xunit">
66+
<HintPath>..\..\..\packages\xunit.1.9.2\lib\net20\xunit.dll</HintPath>
67+
</Reference>
6568
</ItemGroup>
6669
<ItemGroup>
6770
<Compile Include="Properties\AssemblyInfo.cs" />
@@ -81,6 +84,9 @@
8184
<ItemGroup>
8285
<WCFMetadata Include="Service References\" />
8386
</ItemGroup>
87+
<ItemGroup>
88+
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
89+
</ItemGroup>
8490
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
8591
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
8692
Other similar extension points exist, see Microsoft.Common.targets.

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Test/ScenarioTests/AzureVm/ContainerTests.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@
1717
using System.Linq;
1818
using System.Text;
1919
using System.Threading.Tasks;
20+
using Xunit;
2021

21-
namespace Commands.RecoveryServices.Backup.Test.ScenarioTests.AzureVm
22+
namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Test.ScenarioTests
2223
{
23-
class ContainerTests
24+
public class ContainerTests : RecoveryServicesBackupTestsBase
2425
{
26+
[Fact]
27+
public void Test()
28+
{
29+
this.RunPowerShellTest("Test");
30+
}
2531
}
2632
}

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Test/ScenarioTests/TestsBase.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ protected void RunPowerShellTest(params string[] scripts)
6161
using (UndoContext context = UndoContext.Current)
6262
{
6363
context.Start(TestUtilities.GetCallingClass(2), TestUtilities.GetCurrentMethodName(2));
64+
65+
string baseDir = TestUtilities.GetMockBaseDirectory();
66+
string callingClass = TestUtilities.GetCallingClass(2);
67+
string currMethodName = TestUtilities.GetCurrentMethodName(2);
6468

6569
SetupManagementClients();
6670

0 commit comments

Comments
 (0)