Skip to content

Commit f11ee61

Browse files
committed
minor fixes
1 parent 9bbd542 commit f11ee61

File tree

7 files changed

+18
-10
lines changed

7 files changed

+18
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ Nuget/lib
3232
Platforms/NETCore/DelegatesFactory/**/*.cs
3333
Platforms/NETCore/DelegatesTest/**/*.cs
3434
Platforms/NETStandard/DelegatesTest/**/*.cs
35+
**/project.fragment.lock.json

Platforms/NETCore/DelegatesFactory/Nuget.nuspec

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,22 @@
2828
<file src="..\..\NET35\DelegatesFactory\bin\Release\**.pdb" target="lib\NET35" />
2929
<file src="..\..\NET35\DelegatesFactory\bin\Release\**.xml" target="lib\NET35" />
3030
<file src="..\..\NET4\DelegatesFactory\bin\Release\**.dll" target="lib\NET4" />
31+
<file src="..\..\NET4\DelegatesFactory\bin\Release\**.pdb" target="lib\NET4" />
3132
<file src="..\..\NET4\DelegatesFactory\bin\Release\**.xml" target="lib\NET4" />
3233
<file src="..\..\NET45\DelegatesFactory\bin\Release\**.dll" target="lib\NET45" />
34+
<file src="..\..\NET45\DelegatesFactory\bin\Release\**.pdb" target="lib\NET45" />
3335
<file src="..\..\NET45\DelegatesFactory\bin\Release\**.xml" target="lib\NET45" />
3436
<file src="..\..\NET46\DelegatesFactory\bin\Release\**.dll" target="lib\NET46" />
37+
<file src="..\..\NET46\DelegatesFactory\bin\Release\**.pdb" target="lib\NET46" />
3538
<file src="..\..\NET46\DelegatesFactory\bin\Release\**.xml" target="lib\NET46" />
3639
<file src="..\..\NETCore\DelegatesFactory\bin\Release\netstandard1.6\**.dll" target="lib\NETCore" />
40+
<file src="..\..\NETCore\DelegatesFactory\bin\Release\netstandard1.6\**.pdb" target="lib\NETCore" />
3741
<file src="..\..\NETCore\DelegatesFactory\bin\Release\netstandard1.6\**.xml" target="lib\NETCore" />
3842
<file src="..\..\NETPortable\DelegatesFactory\bin\Release\**.dll" target="lib\portable-net45+sl50+netcore45+wpa81+wp8" />
43+
<file src="..\..\NETPortable\DelegatesFactory\bin\Release\**.pdb" target="lib\portable-net45+sl50+netcore45+wpa81+wp8" />
3944
<file src="..\..\NETPortable\DelegatesFactory\bin\Release\**.xml" target="lib\portable-net45+sl50+netcore45+wpa81+wp8" />
4045
<file src="..\..\NETStandard\DelegatesFactory\bin\Release\**.dll" target="lib\netstandard1.5" />
46+
<file src="..\..\NETStandard\DelegatesFactory\bin\Release\**.pdb" target="lib\netstandard1.5" />
4147
<file src="..\..\NETStandard\DelegatesFactory\bin\Release\**.xml" target="lib\netstandard1.5" />
4248
<file src="CustomDelegates\**\*.cs" target="src\CustomDelegates" />
4349
<file src="Extensions\**\*.cs" target="src\Extensions" />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
nuget pack Nuget.nuspec -symbols -properties Configuration=Release -outputdirectory bin\Release
2-
--nuget push .\bin\Release\DelegateFactory.1.0.0.nupkg -Source https://www.nuget.org/api/v2/package
2+
nuget push .\bin\Release\DelegatesFactory.1.0.0.nupkg -Source https://www.nuget.org/api/v2/package

src/DelegatesTest/DelegateFactoryTests_Constructors.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public class DelegateFactoryTests_Constructors
2626
private static readonly Type TestClassType = typeof(TestClass);
2727
private static readonly Type TestStructType = typeof(TestStruct);
2828

29+
//TODO: tests for delegate return type. it cannot be void
2930
[TestMethod]
3031
public void ConstructorByDelegateWithType_BoolParam()
3132
{

src/DelegatesTest/DelegateFactoryTests_InstanceMethods.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2789,13 +2789,6 @@ public void Public_Method_ByObjects_WithConversion_NoVoidDelegate_For_VoidMethod
27892789
_testClassType.InstanceMethod("PublicMethodVoid", typeof(string)));
27902790
}
27912791

2792-
[TestMethod]
2793-
public void Incorrect_TDelegate_For_InstanceGenericMethod()
2794-
{
2795-
AssertHelper.ThrowsException<ArgumentException>(() =>
2796-
_testClassType.InstanceGenericMethod<Action>("PublicMethodVoid", null, new[] { typeof(string) }));
2797-
}
2798-
27992792
[TestMethod]
28002793
public void CustomDelegate_ByTypes_Void_NoParams()
28012794
{

src/DelegatesTest/DelegateFactoryTests_InstanceMethods_Generic.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,5 +810,12 @@ public void InterfaceMethod_Generic_ByObjects()
810810
var result = m(_interfaceImpl, new object[] { TestValue });
811811
Assert.AreEqual(TestValue, result);
812812
}
813+
814+
[TestMethod]
815+
public void Incorrect_TDelegate_For_InstanceGenericMethod()
816+
{
817+
AssertHelper.ThrowsException<ArgumentException>(() =>
818+
_testClassType.InstanceGenericMethod<Action>("PublicMethodVoid", null, new[] { typeof(string) }));
819+
}
813820
}
814821
}

src/DelegatesTest/DelegateFactoryTests_StaticMethods.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,10 +2225,10 @@ public void Public_Method_ByObjects_NoVoidDelegate_For_VoidMethod()
22252225
}
22262226

22272227
[TestMethod]
2228-
public void Incorrect_TDelegate_For_InstanceGenericMethod()
2228+
public void Incorrect_TDelegate_For_StaticcMethod()
22292229
{
22302230
AssertHelper.ThrowsException<ArgumentException>(() =>
2231-
_testClassType.InstanceGenericMethod<Action>("StaticVoidPublic", null, new[] { typeof(string) }));
2231+
_testClassType.StaticMethod<Action>("StaticVoidPublic", null, new[] { typeof(string) }));
22322232
}
22332233
}
22342234
}

0 commit comments

Comments
 (0)