-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding parameter check for track 2 Azure.ResourceManager.core (#19162)
* initial checkin * adding test cases
- Loading branch information
1 parent
dafcd2b
commit b066d3f
Showing
12 changed files
with
137 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
sdk/resourcemanager/Azure.ResourceManager.Core/tests/ArmResponseTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using NUnit.Framework; | ||
|
||
namespace Azure.ResourceManager.Core.Tests | ||
{ | ||
public class ArmResponseTests | ||
{ | ||
[TestCase] | ||
public void TestArmResponseParamCheck() | ||
{ | ||
Assert.Throws<ArgumentNullException>(() => { new ArmResponse(null); }); | ||
|
||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
sdk/resourcemanager/Azure.ResourceManager.Core/tests/ArmVoidOperationTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Azure.ResourceManager.Core.Resources; | ||
using NUnit.Framework; | ||
using System; | ||
|
||
namespace Azure.ResourceManager.Core.Tests | ||
{ | ||
public class ArmVoidOperationTests | ||
{ | ||
[TestCase] | ||
public void TestArmVoidOperationParamCheck() | ||
{ | ||
Assert.Throws<ArgumentNullException>(() => { new ResourceTypeFilter(null); }); | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
sdk/resourcemanager/Azure.ResourceManager.Core/tests/ResourceTypeFilterTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Azure.ResourceManager.Core.Resources; | ||
using NUnit.Framework; | ||
using System; | ||
|
||
namespace Azure.ResourceManager.Core.Tests | ||
{ | ||
public class ResourceTypeFilterTests | ||
{ | ||
[TestCase] | ||
public void TestResourceTypeFilterParamCheck() | ||
{ | ||
Assert.Throws<ArgumentNullException>(() => { new ArmVoidOperation((Operation<Response>)null); }); | ||
Assert.Throws<ArgumentNullException>(() => { new ArmVoidOperation((Response)null); }); | ||
} | ||
} | ||
} |