public void TestTranslation() { TaskHostTaskCancelled cancelled = new TaskHostTaskCancelled(); ((ITranslatable)cancelled).Translate(TranslationHelpers.GetWriteTranslator()); INodePacket packet = TaskHostTaskCancelled.FactoryForDeserialization(TranslationHelpers.GetReadTranslator()); TaskHostTaskCancelled deserializedCancelled = packet as TaskHostTaskCancelled; }
public void TestTranslation() { TaskHostTaskCancelled cancelled = new TaskHostTaskCancelled(); ((ITranslatable)cancelled).Translate(TranslationHelpers.GetWriteTranslator()); INodePacket packet = TaskHostTaskCancelled.FactoryForDeserialization(TranslationHelpers.GetReadTranslator()); packet.ShouldBeOfType <TaskHostTaskCancelled>(); }