}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50570", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void Debug_WriteLineNull_IndentsEmptyStringProperly()
{
[InlineData(-1, 0)]
[InlineData(0, 0)]
[InlineData(1, 1)]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50570", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void IndentLevel_Set_GetReturnsExpected(int indentLevel, int expectedIndentLevel)
{
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50570", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/36882", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void TraceWriteLineIf()
{
=> AssertExtensions.Throws<ArgumentNullException>("inputType", () => JsonContent.Create(null, inputType: null, mediaType: null));
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/52650", TestPlatforms.Android)]
public void JsonContentThrowsOnIncompatibleTypeAsync()
{
using (HttpClient client = new HttpClient())
[Theory]
[InlineData(AddressFamily.InterNetwork)]
[InlineData(AddressFamily.InterNetworkV6)]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void SendPingWithIPAddress(AddressFamily addressFamily)
{
[Theory]
[InlineData(AddressFamily.InterNetwork)]
[InlineData(AddressFamily.InterNetworkV6)]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void SendPingWithIPAddress_AddressAsString(AddressFamily addressFamily)
{
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void SendPingWithIPAddressAndTimeout()
{
[PlatformSpecific(TestPlatforms.AnyUnix)] // On Unix, Non-root pings cannot send arbitrary data in the buffer, and do not receive it back in the PingReply.
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void SendPingWithIPAddressAndTimeoutAndBuffer_Unix()
{
[Theory]
[InlineData(AddressFamily.InterNetwork)]
[InlineData(AddressFamily.InterNetworkV6)]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void SendPingWithIPAddressAndTimeoutAndBufferAndPingOptions_Unix(AddressFamily addressFamily)
{
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void SendPingWithHost()
{
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void SendPingWithHostAndTimeout()
{
[PlatformSpecific(TestPlatforms.AnyUnix)] // On Unix, Non-root pings cannot send arbitrary data in the buffer, and do not receive it back in the PingReply.
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void SendPingWithHostAndTimeoutAndBuffer_Unix()
{
[PlatformSpecific(TestPlatforms.AnyUnix)] // On Unix, Non-root pings cannot send arbitrary data in the buffer, and do not receive it back in the PingReply.
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void SendPingWithHostAndTimeoutAndBufferAndPingOptions_Unix()
{
{
// Assert.DoesNotThrow
PingReply pingReply = await p.SendPingAsync(localIpAddress, TestSettings.PingTimeout, new byte[10001]);
-
+
// Depending on platform the call may either succeed, report timeout or report too big packet. It
// should not throw wrapped SocketException though which is what this test guards.
//
}
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/52617", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public async Task Sends_ReuseInstance_Hostname()
{
p.StartInfo.RedirectStandardOutput = true;
Stopwatch stopWatch = Stopwatch.StartNew();
-
+
p.Start();
p.WaitForExit();
[InlineData(50)]
[InlineData(1000)]
[PlatformSpecific(TestPlatforms.AnyUnix)] // Tests un-priviledged Ping support on Unix
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50574", TestPlatforms.Android)]
public static async Task PacketSizeIsRespected(int payloadSize)
{
var stdOutLines = new List<string>();
Process p = ConstructPingProcess(await TestSettings.GetLocalIPAddressAsync(), payloadSize, 1000);
p.StartInfo.RedirectStandardOutput = true;
- p.OutputDataReceived += delegate (object sendingProcess, DataReceivedEventArgs outputLine)
- {
- stdOutLines.Add(outputLine.Data);
+ p.OutputDataReceived += delegate (object sendingProcess, DataReceivedEventArgs outputLine)
+ {
+ stdOutLines.Add(outputLine.Data);
};
p.StartInfo.RedirectStandardError = true;
- p.ErrorDataReceived += delegate (object sendingProcess, DataReceivedEventArgs errorLine)
- {
- stdErrLines.Add(errorLine.Data);
+ p.ErrorDataReceived += delegate (object sendingProcess, DataReceivedEventArgs errorLine)
+ {
+ stdErrLines.Add(errorLine.Data);
};
p.Start();
}
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/49932", TestPlatforms.Android)]
public static void Uri_DoesNotLockOnString()
{
// Don't intern the string we lock on
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/49872", TestPlatforms.Android)]
public void OffsetOf_ExplicitLayout_ReturnsExpected()
{
Type t = typeof(ExplicitLayoutTest);
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/49872", TestPlatforms.Android)]
public void OffsetOf_Decimal_ReturnsExpected()
{
Type t = typeof(FieldAlignmentTest_Decimal);
[InlineData("Empty", "")]
[InlineData("Reserved Tag", "0F00")]
[InlineData("Zero Tag", "0000")]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50937", TestPlatforms.Android)]
public static void InvalidPublicKeyEncoding(string caseName, string parametersHex)
{
_ = caseName;
[InlineData("Non-Nested Data", "300206035102013001")]
[InlineData("Indefinite Encoding", "3002060351020130800000")]
[InlineData("Dangling LengthLength", "300206035102013081")]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50937", TestPlatforms.Android)]
public static void InvalidSignatureAlgorithmEncoding(string caseName, string sigAlgHex)
{
_ = caseName;
int altWin32Error = 0);
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50937", TestPlatforms.Android)]
public void EmptyPfx_NoMac()
{
Pkcs12Builder builder = new Pkcs12Builder();
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50937", TestPlatforms.Android)]
public void EmptyPfx_NoMac_ArbitraryPassword()
{
Pkcs12Builder builder = new Pkcs12Builder();
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50937", TestPlatforms.Android)]
public void EmptyPfx_EmptyPassword()
{
Pkcs12Builder builder = new Pkcs12Builder();
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50937", TestPlatforms.Android)]
public void EmptyPfx_NullPassword()
{
Pkcs12Builder builder = new Pkcs12Builder();
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50937", TestPlatforms.Android)]
public void EmptyPfx_BadPassword()
{
Pkcs12Builder builder = new Pkcs12Builder();
cert,
new[] { cert, cert },
CheckMultiBoundKeyConsistency);
- }
+ }
}
}
[InlineData("CN=\"unterminated", InvalidX500NameFragment)]
// Non-ASCII values in an E field
[InlineData("E=\u65E5\u672C\u8A9E", InvalidIA5StringFragment)]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50937", TestPlatforms.Android)]
public static void InvalidInput(string input, string messageFragment)
{
CryptographicException exception =
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50937", TestPlatforms.Android)]
public static void CreateFromPem_CryptographicException_InvalidKeyAlgorithm()
{
CryptographicException ce = Assert.Throws<CryptographicException>(() =>
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50937", TestPlatforms.Android)]
public static void CreateFromEncryptedPem_Rsa_InvalidPassword_Fail()
{
CryptographicException ce = Assert.Throws<CryptographicException>(() =>