Ejemplo n.º 1
0
        public void ObjectCanBeReusedAfterReset()
        {
            clientSyncSet.Reset();

            // make old client the host
            SyncSetString hostList    = clientSyncSet;
            SyncSetString clientList2 = new SyncSetString();

            Assert.That(hostList.IsReadOnly, Is.False);

            // Check Add and Sync without errors
            hostList.Add("1");
            hostList.Add("2");
            hostList.Add("3");
            SerializeDeltaTo(hostList, clientList2);
        }
Ejemplo n.º 2
0
        public void ResetShouldClearChanges()
        {
            serverSyncSet.Reset();

            Assert.That(serverSyncSet.GetChangeCount(), Is.Zero);
        }