public void Serialize_Returns_ShiftJis_Encoded_String(int id, string name, string?remarks, string expected)
        {
            var obj = new TestClass
            {
                Id      = id,
                Name    = name,
                Remarks = remarks,
            };

            byte[] result = FixedTextSerializer.Serialize(obj);
            string actual = new(_sjisEncoding.GetChars(result));

            actual.Should().Be(expected);
        }
        public void Serialize_Returns_ShiftJis_Encoded_String_Nested()
        {
            var obj = new TestNestedClass
            {
                Id     = 12345678,
                Parent = new()
                {
                    Id   = 12345678,
                    Name = "あああああ",
                }
            };

            byte[] result = FixedTextSerializer.Serialize(obj);
            string actual = new(_sjisEncoding.GetChars(result));

            actual.Should().Be("1234567812345678あああああ          ");
        }

#nullable disable warnings
 private Action Serialize <T>(T value) where T : notnull
 => () => _ = FixedTextSerializer.Serialize(value);