public void ServerProxy_ConnectSetsId() { //------------Setup for test-------------------------- //------------Execute Test--------------------------- var serverProxy = new TestServerProxy(); var x = Guid.NewGuid(); try { serverProxy.Connect(x); } // ReSharper disable EmptyGeneralCatchClause catch // ReSharper restore EmptyGeneralCatchClause { } //------------Assert Results------------------------- Assert.AreEqual(x, serverProxy.ID); }
public void ServerProxy_ConnectSetsId() { //------------Setup for test-------------------------- //------------Execute Test--------------------------- var serverProxy = new TestServerProxy(); var x = Guid.NewGuid(); try { serverProxy.Connect(x); } catch { } //------------Assert Results------------------------- Assert.AreEqual(x, serverProxy.ID); }