Skip to content

Commit

Permalink
remove fody (#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Nov 18, 2024
1 parent 9fb3b98 commit 6448db1
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 23 deletions.
2 changes: 0 additions & 2 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
<PackageVersion Include="Expecto" Version="10.2.1" />
<PackageVersion Include="Fixie" Version="4.0.0" />
<PackageVersion Include="Fixie.TestAdapter" Version="4.0.0" />
<PackageVersion Include="Fody" Version="6.8.2" />
<PackageVersion Include="FSharp.Core" Version="9.0.100" />
<PackageVersion Include="InfoOf.Fody" Version="2.2.0" />
<PackageVersion Include="MarkdownSnippets.MsBuild" Version="27.0.2" />
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="9.0.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" />
Expand Down
3 changes: 0 additions & 3 deletions src/StrictJsonTests/FodyWeavers.xml

This file was deleted.

2 changes: 0 additions & 2 deletions src/StrictJsonTests/StrictJsonTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Fody" PrivateAssets="all" />
<PackageReference Include="InfoOf.Fody" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Xunit" />
<PackageReference Include="xunit.runner.visualstudio" PrivateAssets="all" />
Expand Down
3 changes: 0 additions & 3 deletions src/Verify.ClipboardAccept/FodyWeavers.xml

This file was deleted.

3 changes: 0 additions & 3 deletions src/Verify.Tests/FodyWeavers.xml

This file was deleted.

16 changes: 8 additions & 8 deletions src/Verify.Tests/Serialization/SerializationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3037,7 +3037,7 @@ public Task Type() =>
[Fact]
public Task Field()
{
var target = Info.OfField<SerializationTests>("MyField");
var target = typeof(SerializationTests).GetField("MyField");
return Verify(target);
}

Expand All @@ -3046,14 +3046,14 @@ public Task Field()
[Fact]
public Task GetProperty()
{
var target = Info.OfPropertyGet<SerializationTests>("MyProperty");
var target = typeof(SerializationTests).GetProperty("MyProperty")!.GetMethod;
return Verify(target);
}

[Fact]
public Task SetProperty()
{
var target = Info.OfPropertySet<SerializationTests>("MyProperty");
var target = typeof(SerializationTests).GetProperty("MyProperty")!.SetMethod;
return Verify(target);
}

Expand All @@ -3068,27 +3068,27 @@ public Task Property()

[Fact]
public Task Method() =>
Verify(Info.OfMethod<SerializationTests>("Method"));
Verify(typeof(SerializationTests).GetMethod("Method"));

[Fact]
public Task Constructor() =>
Verify(Info.OfConstructor<SerializationTests>());
Verify(typeof(SerializationTests).GetConstructor([]));

[Fact]
public Task Parameter()
{
var method = Info.OfMethod<SerializationTests>("MyMethodWithParameters");
var method = typeof(SerializationTests).GetMethod("MyMethodWithParameters")!;
return Verify(method
.GetParameters()
.First());
}

[Fact]
public Task MethodWithParameters() =>
Verify(Info.OfMethod<SerializationTests>("MyMethodWithParameters"));
Verify(typeof(SerializationTests).GetMethod("MyMethodWithParameters"));

// ReSharper disable once UnusedMember.Local
static void MyMethodWithParameters(int x, string y)
public static void MyMethodWithParameters(int x, string y)
{
}

Expand Down
2 changes: 0 additions & 2 deletions src/Verify.Tests/Verify.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Fody" PrivateAssets="all" />
<PackageReference Include="InfoOf.Fody" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="MarkdownSnippets.MsBuild" PrivateAssets="all" />
<PackageReference Include="xunit.runner.visualstudio" PrivateAssets="all" />
Expand Down

0 comments on commit 6448db1

Please sign in to comment.