Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ PublishToken="_PLACEHOLDER_"
# Release: 2020.2
# EAP: 2020.3-EAP2-SNAPSHOT
# Nightly: 2020.3-SNAPSHOT
ProductVersion=2025.3
ProductVersion=2025.1.9

# Kotlin 1.4 will bundle the stdlib dependency by default, causing problems with the version bundled with the IDE
# https://blog.jetbrains.com/kotlin/2020/07/kotlin-1-4-rc-released/#stdlib-default
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet/Plugin.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<!-- See https://www.nuget.org/packages/JetBrains.ReSharper.SDK -->
<!-- Keep in sync with ProductVersion in gradle.properties -->
<SdkVersion>2025.3.0.1</SdkVersion>
<SdkVersion>2025.1.9</SdkVersion>

<Title>AutoMapper.FindUsage</Title>
<Description>ReSharper plugin for easy navigation from destination properties to source properties in AutoMapper mappings.</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,14 @@ public void BuildOneWayMappingTest()
var built = cache.Build(sourceFile, isPreParent: false) as List<SerializableMapping>;

built.Should().BeEquivalentTo([
new SerializableMapping
{
DestinationTypeClrName = "TestNamespace.Destination",
HasReverseMap = false,
IgnoredProperties = [],
SourceTypeClrName = "TestNamespace.Source"
}
]
);
new SerializableMapping
{
DestinationTypeClrName = "TestNamespace.Destination",
HasReverseMap = false,
IgnoredProperties = new List<string>(),
SourceTypeClrName = "TestNamespace.Source"
}
]);
});
});
}
Expand All @@ -55,15 +54,14 @@ public void BuildReverseMappingTest()

var built = cache.Build(sourceFile, isPreParent: false) as List<SerializableMapping>;
built.Should().BeEquivalentTo([
new SerializableMapping
{
DestinationTypeClrName = "TestNamespaceReverse.Destination",
HasReverseMap = true,
IgnoredProperties = [],
SourceTypeClrName = "TestNamespaceReverse.Source"
}
]
);
new SerializableMapping
{
DestinationTypeClrName = "TestNamespaceReverse.Destination",
HasReverseMap = true,
IgnoredProperties = new List<string>(),
SourceTypeClrName = "TestNamespaceReverse.Source"
}
]);
});
});
}
Expand All @@ -82,15 +80,14 @@ public void BuildsIgnoredPropertiesMappiingTest()
var built = cache.Build(sourceFile, isPreParent: false) as List<SerializableMapping>;

built.Should().BeEquivalentTo([
new SerializableMapping
{
DestinationTypeClrName = "TestNamespaceIgnored.Destination",
HasReverseMap = false,
IgnoredProperties = ["Ignored"],
SourceTypeClrName = "TestNamespaceIgnored.Source"
}
]
);
new SerializableMapping
{
DestinationTypeClrName = "TestNamespaceIgnored.Destination",
HasReverseMap = false,
IgnoredProperties = ["Ignored"],
SourceTypeClrName = "TestNamespaceIgnored.Source"
}
]);
});
});
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Application.Parts;
Expand Down Expand Up @@ -177,7 +176,7 @@ private static bool TryGetMappingTypes(ISubstitution substitution, IMethod metho

if (method != null)
{
if (method.TypeParametersCount >= 2)
if (method.TypeParameters.Count >= 2)
{
sourceType = substitution[method.TypeParameters[0]];
destinationType = substitution[method.TypeParameters[1]];
Expand Down
Loading