public class ActivityTracking
{
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotBrowser))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/56073", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void StartStopCreatesActivity()
{
using ActivityEventListener l = new ActivityEventListener();
}
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotBrowser))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/56073", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public async Task ActivityFlowsAsync()
{
using ActivityEventListener l = new ActivityEventListener();
// the future we might decide it wasn't even desirable to begin with.
// Compare with SetCurrentActivityIdAfterEventDoesNotFlowAsync below.
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotBrowser))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/56073", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public async Task SetCurrentActivityIdBeforeEventFlowsAsync()
{
using ActivityEventListener l = new ActivityEventListener();
// the future we might decide it wasn't even desirable to begin with.
// Compare with SetCurrentActivityIdBeforeEventFlowsAsync above.
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotBrowser))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/56073", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public async Task SetCurrentActivityIdAfterEventDoesNotFlowAsync()
{
using ActivityEventListener l = new ActivityEventListener();
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using System;
using System.Collections.Generic;
using System.Drawing.Imaging;
using System.IO;
namespace System.Drawing.Tests
{
+ [ConditionalClass(typeof(PlatformDetection),nameof(PlatformDetection.IsDrawingSupported))]
public class ImageTests
{
private const int PropertyTagLuminanceTable = 0x5090;
private const int PropertyTagTypeShort = 3;
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
- [ConditionalFact(Helpers.IsDrawingSupported)]
+ [Fact]
public void PropertyIdList_GetBitmapJpg_Success()
{
using var bitmap = new Bitmap(Helpers.GetTestBitmapPath("nature24bits.jpg"));
Assert.NotSame(bitmap.PropertyIdList, bitmap.PropertyIdList);
}
- [ConditionalFact(Helpers.IsDrawingSupported)]
+ [Fact]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Returns new int[0] in .NET Framework.")]
public void PropertyIdList_GetEmptyMemoryBitmap_ReturnsExpected()
{
}
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
- [ConditionalFact(Helpers.IsDrawingSupported)]
+ [Fact]
public void PropertyItems_GetBitmapJpg_Success()
{
using var bitmap = new Bitmap(Helpers.GetTestBitmapPath("nature24bits.jpg"));
Assert.NotSame(items, bitmap.PropertyItems);
}
- [ConditionalFact(Helpers.IsDrawingSupported)]
+ [Fact]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Returns new PropertyItem[0] in .NET Framework.")]
public void PropertyItems_GetEmptyBitmapBmp_Success()
{
Assert.Same(bitmap.PropertyItems, bitmap.PropertyItems);
}
- [ConditionalFact(Helpers.IsDrawingSupported)]
+ [Fact]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Returns new PropertyItem[0] in .NET Framework.")]
public void PropertyItems_GetEmptyMemoryBitmap_ReturnsExpected()
{
}
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
- [ConditionalFact(Helpers.IsDrawingSupported)]
+ [Fact]
public void GetPropertyItem_InvokeExistsBitmapBmp_Success()
{
using var bitmap = new Bitmap(Helpers.GetTestBitmapPath("nature24bits.jpg"));
Assert.Equal("LEAD Technologies Inc. V1.01\0", Encoding.ASCII.GetString(item.Value));
}
- [ConditionalTheory(Helpers.IsDrawingSupported)]
+ [Theory]
[InlineData(0)]
[InlineData(1)]
[InlineData(-1)]
Assert.Throws<ArgumentException>(null, () => bitmap.GetPropertyItem(propid));
}
- [ConditionalTheory(Helpers.IsDrawingSupported)]
+ [Theory]
[InlineData(0)]
[InlineData(1)]
[InlineData(-1)]
}
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
- [ConditionalFact(Helpers.IsDrawingSupported)]
+ [Fact]
public void RemovePropertyItem_InvokeMemoryBitmap_Success()
{
using var source = new Bitmap(Helpers.GetTestBitmapPath("nature24bits.jpg"));
}
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
- [ConditionalFact(Helpers.IsDrawingSupported)]
+ [Fact]
public void RemovePropertyItem_InvokeBitmapJpg_Success()
{
using var bitmap = new Bitmap(Helpers.GetTestBitmapPath("nature24bits.jpg"));
}
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
- [ConditionalTheory(Helpers.IsDrawingSupported)]
+ [Theory]
[InlineData(0)]
[InlineData(1)]
[InlineData(-1)]
}
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
- [ConditionalTheory(Helpers.IsDrawingSupported)]
+ [Theory]
[InlineData(0)]
[InlineData(1)]
[InlineData(-1)]
}
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
- [ConditionalTheory(Helpers.IsDrawingSupported)]
+ [Theory]
[InlineData(0)]
[InlineData(1)]
[InlineData(-1)]
}
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
- [ConditionalTheory(Helpers.IsDrawingSupported)]
+ [Theory]
[InlineData(0)]
[InlineData(1)]
[InlineData(-1)]
}
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
- [ConditionalTheory(Helpers.IsDrawingSupported)]
+ [Theory]
[InlineData(0)]
[InlineData(1)]
[InlineData(-1)]
}
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
- [ConditionalTheory(Helpers.IsDrawingSupported)]
+ [Theory]
[InlineData(0)]
[InlineData(1)]
[InlineData(-1)]
}
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
- [ConditionalTheory(Helpers.IsDrawingSupported)]
+ [Theory]
[InlineData(0)]
[InlineData(1)]
[InlineData(-1)]
}
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
- [ConditionalTheory(Helpers.IsDrawingSupported)]
+ [Theory]
[MemberData(nameof(InvalidBytes_TestData))]
public void FromFile_InvalidBytes_ThrowsOutOfMemoryException(byte[] bytes)
{
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/34591", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)]
- [ConditionalTheory(Helpers.IsDrawingSupported)]
+ [Theory]
[MemberData(nameof(InvalidBytes_TestData))]
public void FromStream_InvalidBytes_ThrowsArgumentException(byte[] bytes)
{
}
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, ".NET Framework throws ExternalException")]
- [ConditionalFact(Helpers.IsDrawingSupported)]
+ [Fact]
public void Save_InvalidDirectory_ThrowsDirectoryNotFoundException()
{
using (var bitmap = new Bitmap(1, 1))
public static void TestIsOSVersionAtLeast_Android_21() => Assert.True(OperatingSystem.IsAndroidVersionAtLeast(21)); // 21 is our min supported version
[Fact, PlatformSpecific(TestPlatforms.iOS)]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/56084", TestPlatforms.MacCatalyst)]
public static void TestIsOSPlatform_IOS() => TestIsOSPlatform("iOS", OperatingSystem.IsIOS);
[Fact, PlatformSpecific(TestPlatforms.iOS)]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/56084", TestPlatforms.MacCatalyst)]
public static void TestIsOSVersionAtLeast_IOS() => TestIsOSVersionAtLeast("iOS");
[Fact, PlatformSpecific(TestPlatforms.OSX)]
}
[Fact, PlatformSpecific(TestPlatforms.MacCatalyst)]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/56084", TestPlatforms.MacCatalyst)]
public static void TestIsOSPlatform_MacCatalyst() => TestIsOSPlatform("MacCatalyst", OperatingSystem.IsMacCatalyst);
[Fact, PlatformSpecific(TestPlatforms.MacCatalyst)]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/56084", TestPlatforms.MacCatalyst)]
public static void TestIsOSVersionAtLeast_MacCatalyst() => TestIsOSVersionAtLeast("MacCatalyst");
[Fact, PlatformSpecific(TestPlatforms.MacCatalyst)]
}
[Fact, PlatformSpecific(TestPlatforms.iOS)]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/56084", TestPlatforms.MacCatalyst)]
public static void IOS_Is_Not_Also_MacCatalyst()
{
Assert.False(OperatingSystem.IsOSPlatform("MacCatalyst"));
<!-- https://github.com/dotnet/runtime/issues/52120 -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Net.Security/tests/FunctionalTests/System.Net.Security.Tests.csproj" />
+ <!-- Crash https://github.com/dotnet/runtime/issues/55823 -->
+ <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Runtime.Experimental\tests\System.Runtime.Experimental.Tests.csproj" />
+
<!-- Crashes on CI but passes locally https://github.com/dotnet/runtime/issues/52615 -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)Microsoft.Extensions.Http/tests/Microsoft.Extensions.Http.Tests/Microsoft.Extensions.Http.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)Microsoft.Extensions.Logging/tests/Common/Microsoft.Extensions.Logging.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Threading.Tasks\tests\System.Threading.Tasks.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Threading.Tasks.Dataflow\tests\System.Threading.Tasks.Dataflow.Tests.csproj" />
+ <!-- Crash https://github.com/dotnet/runtime/issues/56085 -->
+ <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Text.Json\tests\System.Text.Json.SourceGeneration.Tests\System.Text.Json.SourceGeneration.Tests.csproj" />
+
<!-- Crashes on CI but passes locally https://github.com/dotnet/runtime/issues/52615 -->
<ProjectExclusions Include="$(RepoRoot)\src\tests\FunctionalTests\iOS\Simulator\Interpreter\iOS.Simulator.Interpreter.Test.csproj" />
<ProjectExclusions Include="$(RepoRoot)\src\tests\FunctionalTests\iOS\Simulator\InvariantCultureOnlyMode\iOS.Simulator.InvariantCultureOnlyMode.Test.csproj" />