2019-01-01 12:53:32 +01:00
|
|
|
/*
|
2019-01-01 12:10:41 +01:00
|
|
|
Copyright (C) 2018-2019 de4dot@gmail.com
|
2018-09-06 02:02:48 +02:00
|
|
|
|
|
|
|
This file is part of Iced.
|
|
|
|
|
|
|
|
Iced is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Iced is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
|
|
along with Iced. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if !NO_ENCODER
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using Iced.Intel;
|
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
namespace Iced.UnitTests.Intel.EncoderTests {
|
|
|
|
public sealed class EncoderTest32 : EncoderTest {
|
|
|
|
[Theory]
|
|
|
|
[MemberData(nameof(Encode_Data))]
|
2018-09-25 21:26:05 +02:00
|
|
|
void Encode(int codeSize, Code code, string hexBytes, DecoderOptions options) => EncodeBase(codeSize, code, hexBytes, options);
|
2018-09-06 02:02:48 +02:00
|
|
|
public static IEnumerable<object[]> Encode_Data => GetEncodeData(32);
|
2018-09-27 21:57:43 +02:00
|
|
|
|
|
|
|
[Theory]
|
|
|
|
[MemberData(nameof(NonDecodeEncode_Data))]
|
|
|
|
void NonDecodeEncode(int codeSize, Instruction instr, string hexBytes, ulong rip) => NonDecodeEncodeBase(codeSize, ref instr, hexBytes, rip);
|
|
|
|
public static IEnumerable<object[]> NonDecodeEncode_Data => GetNonDecodedEncodeData(32);
|
2018-09-06 02:02:48 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|