public void Deserialize() { var s = new CustomCommandSerializer().Serialize("White.NonCoreTests.CustomCommands.dll", "IBazCommand", "Foo", new object[] {"bar", 1}); ICommand customCommand; bool result = new CommandSerializer(new CommandAssemblies()).TryDeserializeCommand(s, out customCommand); Assert.AreEqual(true, result); }
public void Deserialize() { var s = new CustomCommandSerializer().Serialize("White.NonCoreTests.CustomCommands.dll", "IBazCommand", "Foo", new object[] { "bar", 1 }); ICommand customCommand; bool result = new CommandSerializer(new CommandAssemblies()).TryDeserializeCommand(s, out customCommand); Assert.AreEqual(true, result); }