コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }