public void Serialize_ShouldBeReversible()
        {
            // Arrange.
            var target = new BinaryUnicodeSerializer();
            var serializationTarget = "aZ09`ಮ";

            // Act.
            var serializeResult   = target.Serialize(serializationTarget);
            var deserializeResult = target.Deserialize(serializeResult);

            // Assert.
            deserializeResult.Should().BeEquivalentTo(serializationTarget);
        }
        public void Deserialize_ShouldRaiseArgumentNullException_ForNullBufferArgument()
        {
            // Arrange.
            var target = new BinaryUnicodeSerializer();
            var buffer = (Byte[])null;

            // Act.
            var action = new Action(() =>
            {
                var result = target.Deserialize(buffer);
            });

            // Assert.
            action.Should().Throw <ArgumentNullException>();
        }