/// Also see <see cref="WriteLargeJsonToStreamWithoutFlushing"/>
/// </summary>
[PlatformSpecific(TestPlatforms.Windows | TestPlatforms.OSX)]
- [ConditionalFact(nameof(IsX64))]
+ [ConditionalFact(typeof(Environment), nameof(Environment.Is64BitProcess))]
[OuterLoop]
public void WriteRawLargeJsonToStreamWithoutFlushing()
{
}
[PlatformSpecific(TestPlatforms.Windows | TestPlatforms.OSX)]
- [ConditionalTheory(nameof(IsX64))]
+ [ConditionalTheory(typeof(Environment), nameof(Environment.Is64BitProcess))]
[OuterLoop]
[InlineData(JsonTokenType.String)]
[InlineData(JsonTokenType.StartArray)]
}
[PlatformSpecific(TestPlatforms.Windows | TestPlatforms.OSX)]
- [ConditionalTheory(nameof(IsX64))]
+ [ConditionalTheory(typeof(Environment), nameof(Environment.Is64BitProcess))]
[InlineData((int.MaxValue / 3) + 1)]
[InlineData(int.MaxValue / 3 + 2)]
[OuterLoop]
}
[PlatformSpecific(TestPlatforms.Windows | TestPlatforms.OSX)]
- [ConditionalFact(nameof(IsX64))]
+ [ConditionalFact(typeof(Environment), nameof(Environment.Is64BitProcess))]
[OuterLoop]
public static void WriteRawTranscodeFromUtf16ToUtf8TooLong()
{
private const int MaxEscapedTokenSize = 1_000_000_000; // Max size for already escaped value.
private const int MaxUnescapedTokenSize = MaxEscapedTokenSize / MaxExpansionFactorWhileEscaping; // 166_666_666 bytes
- public static bool IsX64 { get; } = IntPtr.Size >= 8;
-
[Theory]
[InlineData(true, true)]
[InlineData(true, false)]
/// Also see <see cref="WriteRawLargeJsonToStreamWithoutFlushing"/>
/// </summary>
[PlatformSpecific(TestPlatforms.Windows | TestPlatforms.OSX)]
- [ConditionalFact(nameof(IsX64))]
+ [ConditionalFact(typeof(Environment), nameof(Environment.Is64BitProcess))]
[OuterLoop]
public void WriteLargeJsonToStreamWithoutFlushing()
{
// succeed even if there is not enough memory but then the test may get killed by the OOM killer at the
// time the memory is accessed which triggers the full memory allocation.
[PlatformSpecific(TestPlatforms.Windows | TestPlatforms.OSX)]
- [ConditionalTheory(nameof(IsX64))]
+ [ConditionalTheory(typeof(Environment), nameof(Environment.Is64BitProcess))]
[OuterLoop]
[InlineData(true, true)]
[InlineData(true, false)]
// succeed even if there is not enough memory but then the test may get killed by the OOM killer at the
// time the memory is accessed which triggers the full memory allocation.
[PlatformSpecific(TestPlatforms.Windows | TestPlatforms.OSX)]
- [ConditionalTheory(nameof(IsX64))]
+ [ConditionalTheory(typeof(Environment), nameof(Environment.Is64BitProcess))]
[OuterLoop]
[InlineData(true, true)]
[InlineData(true, false)]
}
}
- [ConditionalTheory(nameof(IsX64))]
+ [ConditionalTheory(typeof(Environment), nameof(Environment.Is64BitProcess))]
[OuterLoop]
[InlineData(true, true)]
[InlineData(true, false)]
// succeed even if there is not enough memory but then the test may get killed by the OOM killer at the
// time the memory is accessed which triggers the full memory allocation.
[PlatformSpecific(TestPlatforms.Windows | TestPlatforms.OSX)]
- [ConditionalTheory(nameof(IsX64))]
+ [ConditionalTheory(typeof(Environment), nameof(Environment.Is64BitProcess))]
[OuterLoop]
[InlineData(true, true)]
[InlineData(true, false)]
// succeed even if there is not enough memory but then the test may get killed by the OOM killer at the
// time the memory is accessed which triggers the full memory allocation.
[PlatformSpecific(TestPlatforms.Windows | TestPlatforms.OSX)]
- [ConditionalTheory(nameof(IsX64))]
+ [ConditionalTheory(typeof(Environment), nameof(Environment.Is64BitProcess))]
[OuterLoop]
[InlineData(true, true)]
[InlineData(true, false)]
// succeed even if there is not enough memory but then the test may get killed by the OOM killer at the
// time the memory is accessed which triggers the full memory allocation.
[PlatformSpecific(TestPlatforms.Windows | TestPlatforms.OSX)]
- [ConditionalTheory(nameof(IsX64))]
+ [ConditionalTheory(typeof(Environment), nameof(Environment.Is64BitProcess))]
[OuterLoop]
[InlineData(true, true)]
[InlineData(true, false)]
// succeed even if there is not enough memory but then the test may get killed by the OOM killer at the
// time the memory is accessed which triggers the full memory allocation.
[PlatformSpecific(TestPlatforms.Windows | TestPlatforms.OSX)]
- [ConditionalTheory(nameof(IsX64))]
+ [ConditionalTheory(typeof(Environment), nameof(Environment.Is64BitProcess))]
[OuterLoop]
[InlineData(true, true)]
[InlineData(true, false)]
}
}
- [ConditionalTheory(nameof(IsX64))]
+ [ConditionalTheory(typeof(Environment), nameof(Environment.Is64BitProcess))]
[OuterLoop]
[InlineData(true, true)]
[InlineData(false, true)]