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); }
public void ResetShouldClearChanges() { serverSyncSet.Reset(); Assert.That(serverSyncSet.GetChangeCount(), Is.Zero); }