Skip to content

Commit

Permalink
More complex method matching to include return type.
Browse files Browse the repository at this point in the history
Falls back to previous type if no match.
#11
  • Loading branch information
Ian Yates committed Jun 21, 2021
1 parent a2bfaac commit d73db7f
Show file tree
Hide file tree
Showing 11 changed files with 451 additions and 402 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Shimterface
Utility for creating a dynamic object facade/proxy to allow for using an object as an interface that it does not explicitly implement.

[![Build & Test](https://github.com/IanYates83/Shimterface/actions/workflows/dotnet.yml/badge.svg)](https://github.com/IFYates/Shimterface/actions/workflows/dotnet.yml)
[![Build & Test](https://github.com/IFYates/Shimterface/actions/workflows/dotnet.yml/badge.svg)](https://github.com/IFYates/Shimterface/actions/workflows/dotnet.yml)
[![Coverage Status](https://coveralls.io/repos/github/IFYates/Shimterface/badge.svg?branch=master)](https://coveralls.io/github/IFYates/Shimterface?branch=master)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FIFYates%2FShimterface%2Frefs%2Fheads%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/IFYates/Shimterface/refs/heads/master)

[![NuGet Version](https://img.shields.io/nuget/v/Shimterface.Standard)](https://www.nuget.org/packages/Shimterface.Standard/)
![NuGet Downloads](https://img.shields.io/nuget/dt/Shimterface.Standard)
[![NuGet Downloads](https://img.shields.io/nuget/dt/Shimterface.Standard)](https://www.nuget.org/packages/Shimterface.Standard/)

## Description
I'm sure we've all been in the situation where we've had to make use of a class from an external library (including mscorlib) that either doesn't implement any interface or doesn't implement one that can be used for any kind of Inversion of Control usage.
Expand Down
2 changes: 1 addition & 1 deletion Shimterface.Tests/ExtendedFunctionalityTests.Field.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Shimterface.Tests
{
/// <summary>
/// Tests around extending/replacing shim functionality
/// https://github.com/IanYates83/Shimterface/issues/3
/// https://github.com/IFYates/Shimterface/issues/3
/// </summary>
[TestClass]
public class ExtendedFunctionalityTests_Field
Expand Down
2 changes: 1 addition & 1 deletion Shimterface.Tests/ExtendedFunctionalityTests.Method.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Shimterface.Tests
{
/// <summary>
/// Tests around extending/replacing shim functionality
/// https://github.com/IanYates83/Shimterface/issues/3
/// https://github.com/IFYates/Shimterface/issues/3
/// </summary>
[TestClass]
public class ExtendedFunctionalityTests_Method
Expand Down
2 changes: 1 addition & 1 deletion Shimterface.Tests/ExtendedFunctionalityTests.Property.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Shimterface.Tests
{
/// <summary>
/// Tests around extending/replacing shim functionality
/// https://github.com/IanYates83/Shimterface/issues/3
/// https://github.com/IFYates/Shimterface/issues/3
/// </summary>
[TestClass]
public class ExtendedFunctionalityTests_Property
Expand Down
2 changes: 1 addition & 1 deletion Shimterface.Tests/GenericMethodTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Shimterface.Tests
{
// https://github.com/IanYates83/Shimterface/issues/5
// https://github.com/IFYates/Shimterface/issues/5
[TestClass]
public class GenericMethodTests
{
Expand Down
Loading

0 comments on commit d73db7f

Please sign in to comment.