mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Redo Reformat and cleanup.
Rider EAP was having a bug interpreting .editorconfig that didn't generate the code style as we wanted. This is now done with Rider-stable.
This commit is contained in:
@@ -11,74 +11,170 @@ namespace Aaru.Tests.Devices.MultiMediaCard;
|
||||
[TestFixture]
|
||||
public class CSD
|
||||
{
|
||||
readonly string[] cards = { "mmc_6600_32mb", "mmc_pretec_32mb", "mmc_takems_256mb" };
|
||||
readonly string[] cards =
|
||||
{
|
||||
"mmc_6600_32mb", "mmc_pretec_32mb", "mmc_takems_256mb"
|
||||
};
|
||||
|
||||
readonly string[] csds =
|
||||
{
|
||||
"8c26012a0f5901e9f6d983e392404001", "8c0e012a0ff981e9f6d981e18a400001", "905e002a1f5983d3edb683ff96400001"
|
||||
};
|
||||
|
||||
readonly byte[] structure_versions = { 2, 2, 2 };
|
||||
readonly byte[] structure_versions =
|
||||
{
|
||||
2, 2, 2
|
||||
};
|
||||
|
||||
readonly byte[] spec_versions = { 3, 3, 4 };
|
||||
readonly byte[] spec_versions =
|
||||
{
|
||||
3, 3, 4
|
||||
};
|
||||
|
||||
readonly byte[] taacs = { 38, 14, 94 };
|
||||
readonly byte[] taacs =
|
||||
{
|
||||
38, 14, 94
|
||||
};
|
||||
|
||||
readonly byte[] nsacs = { 1, 1, 0 };
|
||||
readonly byte[] nsacs =
|
||||
{
|
||||
1, 1, 0
|
||||
};
|
||||
|
||||
readonly byte[] speeds = { 42, 42, 42 };
|
||||
readonly byte[] speeds =
|
||||
{
|
||||
42, 42, 42
|
||||
};
|
||||
|
||||
readonly ushort[] classes = { 245, 255, 501 };
|
||||
readonly ushort[] classes =
|
||||
{
|
||||
245, 255, 501
|
||||
};
|
||||
|
||||
readonly byte[] read_block_lengths = { 9, 9, 9 };
|
||||
readonly byte[] read_block_lengths =
|
||||
{
|
||||
9, 9, 9
|
||||
};
|
||||
|
||||
readonly bool[] read_partial_blocks = { false, true, true };
|
||||
readonly bool[] read_partial_blocks =
|
||||
{
|
||||
false, true, true
|
||||
};
|
||||
|
||||
readonly bool[] write_misaligned_block = { false, false, false };
|
||||
readonly bool[] write_misaligned_block =
|
||||
{
|
||||
false, false, false
|
||||
};
|
||||
|
||||
readonly bool[] read_misaligned_block = { false, false, false };
|
||||
readonly bool[] read_misaligned_block =
|
||||
{
|
||||
false, false, false
|
||||
};
|
||||
|
||||
readonly bool[] dsr_implemented = { false, false, false };
|
||||
readonly bool[] dsr_implemented =
|
||||
{
|
||||
false, false, false
|
||||
};
|
||||
|
||||
readonly uint[] card_sizes = { 1959, 1959, 3919 };
|
||||
readonly uint[] card_sizes =
|
||||
{
|
||||
1959, 1959, 3919
|
||||
};
|
||||
|
||||
readonly byte[] min_read_current = { 6, 6, 5 };
|
||||
readonly byte[] min_read_current =
|
||||
{
|
||||
6, 6, 5
|
||||
};
|
||||
|
||||
readonly byte[] max_read_current = { 6, 6, 5 };
|
||||
readonly byte[] max_read_current =
|
||||
{
|
||||
6, 6, 5
|
||||
};
|
||||
|
||||
readonly byte[] min_write_current = { 6, 6, 5 };
|
||||
readonly byte[] min_write_current =
|
||||
{
|
||||
6, 6, 5
|
||||
};
|
||||
|
||||
readonly byte[] max_write_current = { 6, 6, 5 };
|
||||
readonly byte[] max_write_current =
|
||||
{
|
||||
6, 6, 5
|
||||
};
|
||||
|
||||
readonly byte[] size_multiplier = { 3, 3, 5 };
|
||||
readonly byte[] size_multiplier =
|
||||
{
|
||||
3, 3, 5
|
||||
};
|
||||
|
||||
readonly byte[] sector_sizes = { 0, 0, 0 };
|
||||
readonly byte[] sector_sizes =
|
||||
{
|
||||
0, 0, 0
|
||||
};
|
||||
|
||||
readonly byte[] erase_sector_sizes = { 31, 15, 31 };
|
||||
readonly byte[] erase_sector_sizes =
|
||||
{
|
||||
31, 15, 31
|
||||
};
|
||||
|
||||
readonly byte[] write_protect_group_size = { 3, 1, 31 };
|
||||
readonly byte[] write_protect_group_size =
|
||||
{
|
||||
3, 1, 31
|
||||
};
|
||||
|
||||
readonly bool[] write_protect_group_enable = { true, true, true };
|
||||
readonly bool[] write_protect_group_enable =
|
||||
{
|
||||
true, true, true
|
||||
};
|
||||
|
||||
readonly byte[] default_eccs = { 0, 0, 0 };
|
||||
readonly byte[] default_eccs =
|
||||
{
|
||||
0, 0, 0
|
||||
};
|
||||
|
||||
readonly byte[] r2w_factors = { 4, 2, 5 };
|
||||
readonly byte[] r2w_factors =
|
||||
{
|
||||
4, 2, 5
|
||||
};
|
||||
|
||||
readonly byte[] write_block_lengths = { 9, 9, 9 };
|
||||
readonly byte[] write_block_lengths =
|
||||
{
|
||||
9, 9, 9
|
||||
};
|
||||
|
||||
readonly bool[] write_partial_blocks = { false, false, false };
|
||||
readonly bool[] write_partial_blocks =
|
||||
{
|
||||
false, false, false
|
||||
};
|
||||
|
||||
readonly bool[] file_format_group = { false, false, false };
|
||||
readonly bool[] file_format_group =
|
||||
{
|
||||
false, false, false
|
||||
};
|
||||
|
||||
readonly bool[] copy = { true, false, false };
|
||||
readonly bool[] copy =
|
||||
{
|
||||
true, false, false
|
||||
};
|
||||
|
||||
readonly bool[] permanent_write_protect = { false, false, false };
|
||||
readonly bool[] permanent_write_protect =
|
||||
{
|
||||
false, false, false
|
||||
};
|
||||
|
||||
readonly bool[] temporary_write_protect = { false, false, false };
|
||||
readonly bool[] temporary_write_protect =
|
||||
{
|
||||
false, false, false
|
||||
};
|
||||
|
||||
readonly byte[] file_format = { 0, 0, 0 };
|
||||
readonly byte[] file_format =
|
||||
{
|
||||
0, 0, 0
|
||||
};
|
||||
|
||||
readonly byte[] ecc = { 0, 0, 0 };
|
||||
readonly byte[] ecc =
|
||||
{
|
||||
0, 0, 0
|
||||
};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
|
||||
Reference in New Issue
Block a user