Skip to content

Commit

Permalink
Merge pull request #19 from seesharper/prepare-release
Browse files Browse the repository at this point in the history
Prepare release 2.0.2
  • Loading branch information
seesharper authored Aug 18, 2018
2 parents a7d1a9a + 31cc9f3 commit 68b7e40
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion build/BuildContext.csx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ var root = FileUtils.GetScriptFolder();
var solutionFolder = Path.Combine(root,"..","src");
var projectFolder = Path.Combine(root, "..", "src", "LightInject.Interception");


var testProjectFolder = Path.Combine(root, "..", "src", "LightInject.Interception.Tests");

var pathToTestAssembly = Path.Combine(testProjectFolder, "bin","release", "net46", "LightInject.Interception.Tests.dll");
Expand Down
4 changes: 2 additions & 2 deletions src/LightInject.Interception.Tests/InterceptorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void Execute_CompositeInterceptor_PassesMethodInvocationTargetToIntercept
var invocationMock = new Mock<IInvocationInfo>();
var method = typeof(IMethodWithNoParameters).GetMethods()[0];

invocationMock.SetupGet(i => i.MethodInvocationTarget).Returns(method);
invocationMock.SetupGet(i => i.TargetMethod).Returns(method);
var compositeInterceptor = new CompositeInterceptor(new[]
{
new Lazy<IInterceptor>(() => firstInterceptorMock.Object),
Expand All @@ -79,7 +79,7 @@ public void Execute_CompositeInterceptor_PassesMethodInvocationTargetToIntercept

compositeInterceptor.Invoke(invocationMock.Object);

firstInterceptorMock.Verify(i => i.Invoke(It.Is<IInvocationInfo>(ii => ii.MethodInvocationTarget == method)));
firstInterceptorMock.Verify(i => i.Invoke(It.Is<IInvocationInfo>(ii => ii.TargetMethod == method)));
}

[Fact]
Expand Down
8 changes: 4 additions & 4 deletions src/LightInject.Interception.Tests/ProxyBuilderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public void Execute_NonGenericMethod_PassesMethodInvocationTargetInfoToIntercept

interceptorMock.Verify(
i => i.Invoke(
It.Is<IInvocationInfo>(ii => ii.Method == expectedMethod && ii.MethodInvocationTarget == expectedMethodInvocationTarget)));
It.Is<IInvocationInfo>(ii => ii.Method == expectedMethod && ii.TargetMethod == expectedMethodInvocationTarget)));
}

[Fact]
Expand All @@ -272,7 +272,7 @@ public void Execute_NonGenericMethod_PassesMethodInvocationTargetInfoToIntercept
instance.Execute();

interceptorMock.Verify(
i => i.Invoke(It.Is<IInvocationInfo>(ii => ii.Method == expectedMethod && ii.MethodInvocationTarget == expectedMethod)));
i => i.Invoke(It.Is<IInvocationInfo>(ii => ii.Method == expectedMethod && ii.TargetMethod == expectedMethod)));
}

[Fact]
Expand All @@ -287,7 +287,7 @@ public void Execute_GenericMethod_PassesMethodInvocationTargetInfoToInterceptorW

interceptorMock.Verify(
i => i.Invoke(
It.Is<IInvocationInfo>(ii => ii.Method == expectedMethod && ii.MethodInvocationTarget == expectedMethodInvocationTarget)));
It.Is<IInvocationInfo>(ii => ii.Method == expectedMethod && ii.TargetMethod == expectedMethodInvocationTarget)));
}

[Fact]
Expand All @@ -300,7 +300,7 @@ public void Execute_GenericMethod_PassesMethodInvocationTargetInfoToInterceptorW
instance.Execute<int>(0);

interceptorMock.Verify(
i => i.Invoke(It.Is<IInvocationInfo>(ii => ii.Method == expectedMethod && ii.MethodInvocationTarget == expectedMethod)));
i => i.Invoke(It.Is<IInvocationInfo>(ii => ii.Method == expectedMethod && ii.TargetMethod == expectedMethod)));
}

[Fact]
Expand Down
8 changes: 4 additions & 4 deletions src/LightInject.Interception/LightInject.Interception.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public interface IInvocationInfo
/// <summary>
/// If the proxy is an interface, gets the <see cref="MethodInfo"/> currently being invoked on the target class.
/// </summary>
MethodInfo MethodInvocationTarget { get; }
MethodInfo TargetMethod { get; }

/// <summary>
/// Gets the <see cref="IProxy"/> instance that intercepted the method call.
Expand Down Expand Up @@ -675,7 +675,7 @@ public MethodInfo Method
/// <summary>
/// If the proxy is an interface, gets the <see cref="MethodInfo"/> currently being invoked on the target class.
/// </summary>
public MethodInfo MethodInvocationTarget
public MethodInfo TargetMethod
{
get
{
Expand Down Expand Up @@ -749,11 +749,11 @@ public MethodInfo Method
/// <summary>
/// If the proxy is an interface, gets the <see cref="MethodInfo"/> currently being invoked on the target class.
/// </summary>
public MethodInfo MethodInvocationTarget
public MethodInfo TargetMethod
{
get
{
return nextInvocationInfo.MethodInvocationTarget;
return nextInvocationInfo.TargetMethod;
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net46;netstandard1.1;netstandard2.0</TargetFrameworks>
<Version>2.0.1</Version>
<Version>2.0.2</Version>
<Authors>Bernhard Richter</Authors>
<PackageProjectUrl>http//www.lightinject.net</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
Expand Down

0 comments on commit 68b7e40

Please sign in to comment.