Repository: incubator-reef Updated Branches: refs/heads/master 6e7ea503b -> 552bbecc8
[REEF-436] Allow the tests projects access to internal APIs This change allows the `.Tests` projects access to the `internal` APIs of the project they test. JIRA: [REEF-436](https://issues.apache.org/jira/browse/REEF-436) Pull Request: This closes #270 Author: Markus Weimer <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-reef/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-reef/commit/552bbecc Tree: http://git-wip-us.apache.org/repos/asf/incubator-reef/tree/552bbecc Diff: http://git-wip-us.apache.org/repos/asf/incubator-reef/diff/552bbecc Branch: refs/heads/master Commit: 552bbecc87fab14c88566ffb78d2bdffa2ffb6fc Parents: 6e7ea50 Author: Markus Weimer <[email protected]> Authored: Thu Jul 2 11:29:10 2015 -0700 Committer: Julia Wang <[email protected]> Committed: Thu Jul 2 14:22:25 2015 -0700 ---------------------------------------------------------------------- lang/cs/Org.Apache.REEF.Common/Properties/AssemblyInfo.cs | 4 ++++ .../Org.Apache.REEF.IMRU.Tests/Org.Apache.REEF.IMRU.Tests.csproj | 3 +++ lang/cs/Org.Apache.REEF.Network/Properties/AssemblyInfo.cs | 4 ++++ lang/cs/Org.Apache.REEF.Tang/Properties/AssemblyInfo.cs | 4 ++++ lang/cs/Org.Apache.REEF.Wake/Properties/AssemblyInfo.cs | 4 ++++ 5 files changed, 19 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/552bbecc/lang/cs/Org.Apache.REEF.Common/Properties/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/lang/cs/Org.Apache.REEF.Common/Properties/AssemblyInfo.cs b/lang/cs/Org.Apache.REEF.Common/Properties/AssemblyInfo.cs index fe97442..b9409ce 100644 --- a/lang/cs/Org.Apache.REEF.Common/Properties/AssemblyInfo.cs +++ b/lang/cs/Org.Apache.REEF.Common/Properties/AssemblyInfo.cs @@ -18,6 +18,7 @@ */ using System.Reflection; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following @@ -52,3 +53,6 @@ using System.Runtime.InteropServices; // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("0.12.0.0")] [assembly: AssemblyFileVersion("0.12.0.0")] + +// Allow the tests access to `internal` APIs +[assembly: InternalsVisibleTo("Org.Apache.REEF.Common.Tests")] http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/552bbecc/lang/cs/Org.Apache.REEF.IMRU.Tests/Org.Apache.REEF.IMRU.Tests.csproj ---------------------------------------------------------------------- diff --git a/lang/cs/Org.Apache.REEF.IMRU.Tests/Org.Apache.REEF.IMRU.Tests.csproj b/lang/cs/Org.Apache.REEF.IMRU.Tests/Org.Apache.REEF.IMRU.Tests.csproj index 1bf3fdf..9807cbe 100644 --- a/lang/cs/Org.Apache.REEF.IMRU.Tests/Org.Apache.REEF.IMRU.Tests.csproj +++ b/lang/cs/Org.Apache.REEF.IMRU.Tests/Org.Apache.REEF.IMRU.Tests.csproj @@ -61,5 +61,8 @@ under the License. <Name>Org.Apache.REEF.Wake</Name> </ProjectReference> </ItemGroup> + <ItemGroup> + <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> + </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> </Project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/552bbecc/lang/cs/Org.Apache.REEF.Network/Properties/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/lang/cs/Org.Apache.REEF.Network/Properties/AssemblyInfo.cs b/lang/cs/Org.Apache.REEF.Network/Properties/AssemblyInfo.cs index e8f5fda..2c7182d 100644 --- a/lang/cs/Org.Apache.REEF.Network/Properties/AssemblyInfo.cs +++ b/lang/cs/Org.Apache.REEF.Network/Properties/AssemblyInfo.cs @@ -18,6 +18,7 @@ */ using System.Reflection; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following @@ -52,3 +53,6 @@ using System.Runtime.InteropServices; // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("0.12.0.0")] [assembly: AssemblyFileVersion("0.12.0.0")] + +// Allow the tests access to `internal` APIs +[assembly: InternalsVisibleTo("Org.Apache.REEF.Network.Tests")] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/552bbecc/lang/cs/Org.Apache.REEF.Tang/Properties/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/lang/cs/Org.Apache.REEF.Tang/Properties/AssemblyInfo.cs b/lang/cs/Org.Apache.REEF.Tang/Properties/AssemblyInfo.cs index 2e261d2..2982d40 100644 --- a/lang/cs/Org.Apache.REEF.Tang/Properties/AssemblyInfo.cs +++ b/lang/cs/Org.Apache.REEF.Tang/Properties/AssemblyInfo.cs @@ -18,6 +18,7 @@ */ using System.Reflection; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following @@ -52,3 +53,6 @@ using System.Runtime.InteropServices; // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("0.12.0.0")] [assembly: AssemblyFileVersion("0.12.0.0")] + +// Allow the tests access to `internal` APIs +[assembly: InternalsVisibleTo("Org.Apache.REEF.Tang.Tests")] http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/552bbecc/lang/cs/Org.Apache.REEF.Wake/Properties/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/lang/cs/Org.Apache.REEF.Wake/Properties/AssemblyInfo.cs b/lang/cs/Org.Apache.REEF.Wake/Properties/AssemblyInfo.cs index 7922f52..41d8e33 100644 --- a/lang/cs/Org.Apache.REEF.Wake/Properties/AssemblyInfo.cs +++ b/lang/cs/Org.Apache.REEF.Wake/Properties/AssemblyInfo.cs @@ -18,6 +18,7 @@ */ using System.Reflection; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following @@ -52,3 +53,6 @@ using System.Runtime.InteropServices; // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("0.12.0.0")] [assembly: AssemblyFileVersion("0.12.0.0")] + +// Allow the tests access to `internal` APIs +[assembly: InternalsVisibleTo("Org.Apache.REEF.Wake.Tests")]
