-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Microsoft/develop
Fetching changes from Microsoft repo to the clone
- Loading branch information
Showing
63 changed files
with
1,652 additions
and
371 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
setlocal | ||
|
||
set BINROOT=%TF_BUILD_BINARIESDIRECTORY%\Release\NuGet | ||
if not exist %BINROOT% echo "Error: '%BINROOT%' does not exist."&goto :eof | ||
|
||
set NUGET=%TF_BUILD_SOURCESDIRECTORY%\NuGet.exe | ||
if not exist %NUGET% echo "Error: '%NUGET%' does not exist."&goto :eof | ||
|
||
set NUGET_GALLERY=https://www.myget.org/F/applicationinsights/api/v2/package | ||
|
||
for /r "%BINROOT%" %%P in (*.nupkg) do call :push %%P | ||
goto :eof | ||
|
||
:push | ||
set PACKAGE=%1 | ||
if %PACKAGE:.symbols.=% == %PACKAGE% ( | ||
%NUGET% push "%PACKAGE%" %1 -source %NUGET_GALLERY% | ||
) | ||
goto :eof | ||
|
||
endlocal |
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
42 changes: 42 additions & 0 deletions
42
...ation.AL.Shared.Tests/Extensibility/Implementation/AsyncLoaclBasedOperationHolderTests.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,42 @@ | ||
namespace Microsoft.ApplicationInsights.Extensibility.Implementation | ||
{ | ||
using System; | ||
using Microsoft.ApplicationInsights.DataContracts; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
/// <summary> | ||
/// Tests corresponding to TelemetryClientExtension methods. | ||
/// </summary> | ||
[TestClass] | ||
public class AsyncLoaclBasedOperationHolderTests | ||
{ | ||
/// <summary> | ||
/// Tests the scenario if OperationItem throws ArgumentNullException with null telemetry client. | ||
/// </summary> | ||
[TestMethod] | ||
[ExpectedException(typeof(ArgumentNullException))] | ||
public void CreatingOperationItemWithNullTelemetryClientThrowsArgumentNullException() | ||
{ | ||
var operationItem = new AsyncLocalBasedOperationHolder<DependencyTelemetry>(null, new DependencyTelemetry()); | ||
} | ||
|
||
/// <summary> | ||
/// Tests the scenario if OperationItem throws ArgumentNullException with null telemetry. | ||
/// </summary> | ||
[TestMethod] | ||
[ExpectedException(typeof(ArgumentNullException))] | ||
public void CreatingOperationItemWithNullTelemetryThrowsArgumentNullException() | ||
{ | ||
var operationItem = new AsyncLocalBasedOperationHolder<DependencyTelemetry>(new TelemetryClient(), null); | ||
} | ||
|
||
/// <summary> | ||
/// Tests the scenario if creating OperationItem does not throw exception if arguments are not null. | ||
/// </summary> | ||
[TestMethod] | ||
public void CreatingOperationItemDoesNotThrowOnPassingValidArguments() | ||
{ | ||
var operationItem = new AsyncLocalBasedOperationHolder<DependencyTelemetry>(new TelemetryClient(), new DependencyTelemetry()); | ||
} | ||
} | ||
} |
Oops, something went wrong.