diff --git a/Consul.Test/AgentTest.cs b/Consul.Test/AgentTest.cs index e25eb10..3fa851d 100644 --- a/Consul.Test/AgentTest.cs +++ b/Consul.Test/AgentTest.cs @@ -54,13 +54,14 @@ public void Agent_Services() var reg = new AgentServiceRegistration() { Name = "foo", - Tags = new[] {"bar", "baz"}, + Tags = new[] { "bar", "baz" }, Port = 8000, Check = new AgentServiceCheck { TTL = TimeSpan.FromSeconds(15) } }; + c.Agent.ServiceRegister(reg); var services = c.Agent.Services(); @@ -81,7 +82,7 @@ public void Agent_Services_CheckPassing() var reg = new AgentServiceRegistration() { Name = "foo", - Tags = new[] {"bar", "baz"}, + Tags = new[] { "bar", "baz" }, Port = 8000, Check = new AgentServiceCheck { @@ -145,7 +146,7 @@ public void Agent_Services_MultipleChecks() var reg = new AgentServiceRegistration() { Name = "foo", - Tags = new[] {"bar", "baz"}, + Tags = new[] { "bar", "baz" }, Port = 8000, Checks = new[] { diff --git a/Consul.Test/AssemblyTest.cs b/Consul.Test/AssemblyTest.cs new file mode 100644 index 0000000..57c65c3 --- /dev/null +++ b/Consul.Test/AssemblyTest.cs @@ -0,0 +1,25 @@ +using System; +using System.Text; +using System.Collections.Generic; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System.Reflection; +using System.Diagnostics; + +namespace Consul.Test +{ + /// + /// Summary description for AssemblyTest + /// + [TestClass] + public class AssemblyTest + { + [TestMethod] + public void Assembly_IsStrongNamed() + { + Type t = typeof(Consul.Client); + string s = t.Assembly.FullName.ToString(); + Trace.WriteLine(s); + Assert.IsTrue(t.Assembly.FullName.Contains("PublicKeyToken")); + } + } +} diff --git a/Consul.Test/Consul.Test.csproj b/Consul.Test/Consul.Test.csproj index 6a51bcc..c10266d 100644 --- a/Consul.Test/Consul.Test.csproj +++ b/Consul.Test/Consul.Test.csproj @@ -34,6 +34,12 @@ prompt 4 + + true + + + ..\assets\consuldotnet.snk + @@ -56,6 +62,7 @@ + diff --git a/Consul.sln b/Consul.sln index a119c8a..b14366d 100644 --- a/Consul.sln +++ b/Consul.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2013 -VisualStudioVersion = 12.0.30501.0 +VisualStudioVersion = 12.0.31101.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Consul", "Consul\Consul.csproj", "{1EB4B74D-0BAC-4D14-872E-00CF455CCD53}" EndProject diff --git a/Consul/Consul.csproj b/Consul/Consul.csproj index 10b3431..1a3de22 100644 --- a/Consul/Consul.csproj +++ b/Consul/Consul.csproj @@ -32,6 +32,12 @@ prompt 4 + + true + + + ..\assets\consuldotnet.snk + ..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll diff --git a/Consul/Properties/AssemblyInfo.cs b/Consul/Properties/AssemblyInfo.cs index 2a3351b..77be94a 100644 --- a/Consul/Properties/AssemblyInfo.cs +++ b/Consul/Properties/AssemblyInfo.cs @@ -34,4 +34,9 @@ // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("0.5.2.8")] [assembly: AssemblyFileVersion("0.5.2.8")] -[assembly: InternalsVisibleTo("Consul.Test")] +[assembly: InternalsVisibleTo("Consul.Test,PublicKey=" + + "002400000480000094000000060200000024000052534131000400000100010045f6337bf03a95" + + "218f1e0b4e70bb91f8ee49fcb58593d78c1008ee646cfcf785ea60bd0b1dde6f5f92ead738e2bd" + + "7f31ee9c209bbedbe1fd0cc5ee2ea60e73099044d2fa7ba1e8f0971fae411f42c6e8fab787d39a" + + "b8229ab857724c976ce23680bc94dc7b1e063042580e4e9f72792f953b3c62b80c4c406d8b4d27" + + "9d5f14ca")] \ No newline at end of file diff --git a/assets/consuldotnet.snk b/assets/consuldotnet.snk new file mode 100644 index 0000000..b14a754 Binary files /dev/null and b/assets/consuldotnet.snk differ