public void HandlePacket() { while (_packet.Data.Length > 0) { var stateData = _packet.Pull <object>(); _worldDataReplication.Read(stateData); } }
public void Read_ValueSet_True() { _dataMock.IntValue = 1; var dataRead = new Dictionary <string, object> { { nameof(_dataMock.IntValue), 5 } }; _replicationMock.Read(dataRead); Assert.IsTrue(_dataMock.IntValue == 5); }