Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit eb5c56d

Browse files
authored
Update dependencies (microsoft#1526)
1 parent fc594f8 commit eb5c56d

7 files changed

+27
-27
lines changed

src/Analysis/Ast/Test/FluentAssertions/AssertionsUtilities.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -188,38 +188,38 @@ public static string DoubleEscape(string input)
188188
=> input.Replace("\r", "\\\u200Br").Replace("\n", "\\\u200Bn").Replace("\t", @"\t");
189189

190190
[CustomAssertion]
191-
public static Continuation AssertIsNotNull<T>(this AssertionScope assertionScope, T instance, string subjectName, string itemName, string accessorName)
191+
public static Continuation AssertIsNotNull<T>(this IAssertionScope IAssertionScope, T instance, string subjectName, string itemName, string accessorName)
192192
where T : class
193-
=> assertionScope.ForCondition(!(instance is null))
193+
=> IAssertionScope.ForCondition(!(instance is null))
194194
.FailWith($"Expected {subjectName} to have {itemName}{{reason}}, but {accessorName} is null.");
195195

196196
[CustomAssertion]
197-
public static Continuation AssertAtIndex<T, TItem>(this AssertionScope assertionScope, IReadOnlyList<T> collection, int index, string subjectName, string itemName)
198-
where T : class => assertionScope.ForCondition(collection.Count > index)
197+
public static Continuation AssertAtIndex<T, TItem>(this IAssertionScope IAssertionScope, IReadOnlyList<T> collection, int index, string subjectName, string itemName)
198+
where T : class => IAssertionScope.ForCondition(collection.Count > index)
199199
.FailWith($"Expected {subjectName} to have {itemName} of type {typeof(T).Name} at index {index}{{reason}}, but collection has only {collection.Count} items.", subjectName, itemName)
200200
.Then
201201
.ForCondition(collection[index] is TItem)
202202
.FailWith($"Expected {subjectName} to have {itemName} of type `{typeof(T).Name}` at index {index}{{reason}}, but its type is `{collection[index].GetType().Name}`.");
203203

204204
[CustomAssertion]
205-
public static Continuation AssertHasMember(this AssertionScope assertionScope, IMember m, string memberName, string analysisValueName, string memberPrintName, out IMember member) {
205+
public static Continuation AssertHasMember(this IAssertionScope IAssertionScope, IMember m, string memberName, string analysisValueName, string memberPrintName, out IMember member) {
206206
var t = m.GetPythonType();
207207
t.Should().BeAssignableTo<IMemberContainer>();
208208
try {
209209
member = ((IMemberContainer)m).GetMember(memberName);
210210
} catch (Exception e) {
211211
member = null;
212-
return assertionScope.FailWith($"Expected {analysisValueName} to have a {memberPrintName}{{reason}}, but {nameof(t.GetMember)} has failed with exception: {e}.");
212+
return IAssertionScope.FailWith($"Expected {analysisValueName} to have a {memberPrintName}{{reason}}, but {nameof(t.GetMember)} has failed with exception: {e}.");
213213
}
214214

215-
return assertionScope.ForCondition(!(member is null))
215+
return IAssertionScope.ForCondition(!(member is null))
216216
.FailWith($"Expected {analysisValueName} to have a {memberPrintName}{{reason}}.");
217217
}
218218

219219
[CustomAssertion]
220-
public static Continuation AssertHasMemberOfType<TMember>(this AssertionScope assertionScope, IPythonType type, string memberName, string analysisValueName, string memberPrintName, out TMember typedMember)
220+
public static Continuation AssertHasMemberOfType<TMember>(this IAssertionScope IAssertionScope, IPythonType type, string memberName, string analysisValueName, string memberPrintName, out TMember typedMember)
221221
where TMember : class, IPythonType {
222-
var continuation = assertionScope.AssertHasMember(type, memberName, analysisValueName, memberPrintName, out var member)
222+
var continuation = IAssertionScope.AssertHasMember(type, memberName, analysisValueName, memberPrintName, out var member)
223223
.Then
224224
.ForCondition(member is TMember)
225225
.FailWith($"Expected {analysisValueName} to have a {memberPrintName} of type {typeof(TMember)}{{reason}}, but its type is {member.GetType()}.");

src/Analysis/Ast/Test/Microsoft.Python.Analysis.Tests.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
<None Remove="app.config" />
2424
</ItemGroup>
2525
<ItemGroup>
26-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.0" />
26+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
2727
<PackageReference Include="Microsoft.Win32.Registry" Version="4.5.0" />
28-
<PackageReference Include="MSTest.TestAdapter" Version="1.4.0" />
29-
<PackageReference Include="MSTest.TestFramework" Version="1.4.0" />
28+
<PackageReference Include="MSTest.TestAdapter" Version="2.0.0" />
29+
<PackageReference Include="MSTest.TestFramework" Version="2.0.0" />
3030
<PackageReference Include="MicroBuild.Core" Version="0.3.0">
3131
<PrivateAssets>all</PrivateAssets>
3232
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
3333
</PackageReference>
34-
<PackageReference Include="NSubstitute" Version="4.0.0" />
34+
<PackageReference Include="NSubstitute" Version="4.2.1" />
3535
</ItemGroup>
3636
<ItemGroup>
3737
<ProjectReference Include="..\..\..\Core\Impl\Microsoft.Python.Core.csproj" />

src/Core/Test/Microsoft.Python.Core.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
<None Remove="app.config" />
2828
</ItemGroup>
2929
<ItemGroup>
30-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.0" />
30+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
3131
<PackageReference Include="Microsoft.Win32.Registry" Version="4.5.0" />
32-
<PackageReference Include="MSTest.TestAdapter" Version="1.4.0" />
33-
<PackageReference Include="MSTest.TestFramework" Version="1.4.0" />
32+
<PackageReference Include="MSTest.TestAdapter" Version="2.0.0" />
33+
<PackageReference Include="MSTest.TestFramework" Version="2.0.0" />
3434
<PackageReference Include="MicroBuild.Core" Version="0.3.0">
3535
<PrivateAssets>all</PrivateAssets>
3636
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>

src/LanguageServer/Impl/Microsoft.Python.LanguageServer.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
3131
</PackageReference>
3232
<PackageReference Include="Microsoft.Extensions.FileSystemGlobbing" Version="2.2.0" />
33-
<PackageReference Include="NewtonSoft.Json" Version="12.0.1" />
34-
<PackageReference Include="StreamJsonRpc" Version="2.0.146" />
33+
<PackageReference Include="NewtonSoft.Json" Version="12.0.2" />
34+
<PackageReference Include="StreamJsonRpc" Version="2.1.55" />
3535
</ItemGroup>
3636
<ItemGroup Condition="$(AnalysisReference) != ''">
3737
<Reference Include="Microsoft.Python.Analysis.Engine">

src/LanguageServer/Test/Microsoft.Python.LanguageServer.Tests.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
<None Remove="app.config" />
2424
</ItemGroup>
2525
<ItemGroup>
26-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.0" />
26+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
2727
<PackageReference Include="Microsoft.Win32.Registry" Version="4.5.0" />
28-
<PackageReference Include="MSTest.TestAdapter" Version="1.4.0" />
29-
<PackageReference Include="MSTest.TestFramework" Version="1.4.0" />
28+
<PackageReference Include="MSTest.TestAdapter" Version="2.0.0" />
29+
<PackageReference Include="MSTest.TestFramework" Version="2.0.0" />
3030
<PackageReference Include="MicroBuild.Core" Version="0.3.0">
3131
<PrivateAssets>all</PrivateAssets>
3232
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
3333
</PackageReference>
34-
<PackageReference Include="NSubstitute" Version="4.0.0" />
34+
<PackageReference Include="NSubstitute" Version="4.2.1" />
3535
</ItemGroup>
3636
<ItemGroup>
3737
<ProjectReference Include="..\..\Analysis\Ast\Impl\Microsoft.Python.Analysis.csproj" />

src/Parsing/Test/Microsoft.Python.Parsing.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
<None Remove="app.config" />
2828
</ItemGroup>
2929
<ItemGroup>
30-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.0" />
30+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
3131
<PackageReference Include="Microsoft.Win32.Registry" Version="4.5.0" />
32-
<PackageReference Include="MSTest.TestAdapter" Version="1.4.0" />
33-
<PackageReference Include="MSTest.TestFramework" Version="1.4.0" />
32+
<PackageReference Include="MSTest.TestAdapter" Version="2.0.0" />
33+
<PackageReference Include="MSTest.TestFramework" Version="2.0.0" />
3434
<PackageReference Include="MicroBuild.Core" Version="0.3.0">
3535
<PrivateAssets>all</PrivateAssets>
3636
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>

src/UnitTests/Core/Impl/UnitTests.Core.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
99
<ItemGroup>
1010
<PackageReference Include="Ben.Demystifier" Version="0.1.4" />
11-
<PackageReference Include="FluentAssertions" Version="5.4.0" />
12-
<PackageReference Include="MSTest.TestFramework" Version="1.4.0" />
11+
<PackageReference Include="FluentAssertions" Version="5.9.0" />
12+
<PackageReference Include="MSTest.TestFramework" Version="2.0.0" />
1313
<PackageReference Include="MicroBuild.Core" Version="0.3.0">
1414
<PrivateAssets>all</PrivateAssets>
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>

0 commit comments

Comments
 (0)