From 1b3bd12230cde3974bbe2c1bad34c228e32c86e8 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Fri, 1 Apr 2016 22:24:21 -0700 Subject: [PATCH] Don't load Netwonsoft.Json from path It's already loaded. --- test/powershell/Json.Tests.ps1 | 9 --------- 1 file changed, 9 deletions(-) diff --git a/test/powershell/Json.Tests.ps1 b/test/powershell/Json.Tests.ps1 index 53305d2a0..978f11f64 100644 --- a/test/powershell/Json.Tests.ps1 +++ b/test/powershell/Json.Tests.ps1 @@ -1,15 +1,6 @@ -# While Core PowerShell does not support the JSON cmdlets, a third -# party C# library, [Json.NET](http://www.newtonsoft.com/json), can be -# loaded into PowerShell and used directly. - # http://www.newtonsoft.com/json/help/html/ParsingLINQtoJSON.htm Describe "Json.NET LINQ Parsing" { - # load third party Json.NET library - $base = [System.AppContext]::BaseDirectory - $path = Join-Path $base Newtonsoft.Json.dll - [Microsoft.PowerShell.CoreCLR.AssemblyExtensions]::LoadFrom($path) - BeforeEach { $jsonFile = Join-Path -Path (Join-Path $PSScriptRoot -ChildPath assets) -ChildPath TestJson.json $jsonData = (Get-Content $jsonFile | Out-String)