public void ObjectCanBeReusedAfterReset() { clientSyncList.Reset(); // make old client the host SyncListString hostList = clientSyncList; SyncListString clientList2 = new SyncListString(); Assert.That(hostList.IsReadOnly, Is.False); // Check Add and Sync without errors hostList.Add("hello"); hostList.Add("world"); SerializeDeltaTo(hostList, clientList2); }
public void ResetShouldClearChanges() { serverSyncList.Reset(); Assert.That(serverSyncList.GetChangeCount(), Is.Zero); }