public void SerializeToString_OneOperation_Serialize()
        {
            var dummyOperation = new DummyOperation();

            dummyOperation.Value = "Test";

            var operationSequence = new RenameOperationSequence <IRenameOperation>();

            operationSequence.Add(dummyOperation);

            string expectedSerializedString =
                "[RedBlueGames.MulliganRenamer.RenameOperationSequenceTests+DummyOperation]" +
                "{\"value\":\"Test\"}";

            Assert.AreEqual(expectedSerializedString, operationSequence.ToSerializableString());
        }
        public void SerializeToString_TwoOperations_Serialize()
        {
            var dummyOperation1 = new DummyOperation();

            dummyOperation1.Value = "First value";

            var dummyOperation2 = new DummyOperation();

            dummyOperation2.Value = "The next value";

            var operationSequence = new RenameOperationSequence <IRenameOperation>();

            operationSequence.Add(dummyOperation1);
            operationSequence.Add(dummyOperation2);

            string expectedSerializedString =
                "[RedBlueGames.MulliganRenamer.RenameOperationSequenceTests+DummyOperation]" +
                "{\"value\":\"First value\"}\n" +
                "[RedBlueGames.MulliganRenamer.RenameOperationSequenceTests+DummyOperation]" +
                "{\"value\":\"The next value\"}";

            Assert.AreEqual(expectedSerializedString, operationSequence.ToSerializableString());
        }