public override void ServerToClient(WfResourceDescriptor server, ref WfClientResourceDescriptor client)
        {
            server.NullCheck("server");

            WfDynamicResourceDescriptor serverDynRes = (WfDynamicResourceDescriptor)server;

            if (client == null)
                client = new WfClientDynamicResourceDescriptor(serverDynRes.Name, serverDynRes.Condition.Expression);
            else
            {
                WfClientDynamicResourceDescriptor clientDynRes = (WfClientDynamicResourceDescriptor)client;

                clientDynRes.Name = serverDynRes.Name;
                clientDynRes.Condition.Expression = serverDynRes.Condition.Expression;
            }
        }
        public static void AreSame(this WfClientDynamicResourceDescriptor expected, WfClientDynamicResourceDescriptor actual)
        {
            if (expected != null && actual != null)
            {
                AssertStringEqual(expected.Name, actual.Name);

                expected.Condition.AreSame(actual.Condition);
            }
            else
                Assert.AreEqual(expected, actual);
        }