}
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50576", TestPlatforms.Android)]
public static void ExternalCancel_AddToAny()
{
for (int test = 0; test < 3; test++)
public class CategoryAttributeTests
{
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50881", TestPlatforms.Android)]
public void Ctor_Default()
{
var attribute = new CategoryAttribute();
[InlineData("Misc", true)]
[InlineData("misc", false)]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, ".NET Framework throws a NullReferenceException")]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50881", TestPlatforms.Android)]
public void Ctor_String(string category, bool expectedIsDefaultAttribute)
{
var attribute = new CategoryAttribute(category);
[Theory]
[MemberData(nameof(Equals_TestData))]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50881", TestPlatforms.Android)]
public void Equals_Object_ReturnsExpected(CategoryAttribute attribute, object other, bool expected)
{
Assert.Equal(expected, attribute.Equals(other));
[Theory]
[MemberData(nameof(Properties_TestData))]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50881", TestPlatforms.Android)]
public void Properties_Get_ReturnsExpected(Func<CategoryAttribute> attributeThunk, string expectedCategory)
{
CategoryAttribute attribute = attributeThunk();
[InlineData(null)]
[InlineData("")]
[InlineData("value")]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50881", TestPlatforms.Android)]
public void GetLocalizedString_InvokeNoSuchValue_ReturnsNull(string value)
{
var attribute = new SubCategoryAttribute();
}
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsBinaryFormatterSupported))]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50881", TestPlatforms.Android)]
public void Ctor_SerializationInfo_StreamingContext()
{
using (var stream = new MemoryStream())
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50917", TestPlatforms.Android)]
public void Satisfied_Invoke_ReturnsExpected()
{
var contract = new CompositionContract(typeof(int));
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50917", TestPlatforms.Android)]
public void ToString_Invoke_ReturnsExpected()
{
var promise = new ExportDescriptorPromise(new CompositionContract(typeof(int)), "Origin", true, () => Enumerable.Empty<CompositionDependency>(), depdendencies =>
[Theory]
[MemberData(nameof(ToString_TestData))]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50918", TestPlatforms.Android)]
public void ToString_Get_ReturnsExpected(CompositionContract contract, string expected)
{
Assert.Equal(expected, contract.ToString());
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void RequestingOneWhereMultipleArePresentFails()
{
var c = CreateContainer(typeof(LogA), typeof(LogB));
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void ImportingOneWhereMultipleArePresentFails()
{
var c = CreateContainer(typeof(LogA), typeof(LogB), typeof(UsesLog));
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void FormattingTheContractPrintsConstraintKeysAndValues()
{
var mcd = new CompositionContract(typeof(AType), null, new Dictionary<string, object> { { "A", 1 }, { "B", "C" } });
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void InstanceExportsOfIncompatibleContractsAreDetected()
{
var x = Assert.Throws<CompositionFailedException>(() => CreateContainer(typeof(IncompatibleRule)));
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void PropertyExportsOfIncompatibleContractsAreDetected()
{
var x = Assert.Throws<CompositionFailedException>(() => CreateContainer(typeof(IncompatibleRuleProperty)));
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void MultipleImportAttributesAreDetected()
{
var c = new ContainerConfiguration()
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void MissingTopLevelExportMessageIsInformative()
{
var cc = CreateContainer();
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void MissingTopLevelNamedExportMessageIsInformative()
{
var cc = CreateContainer();
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void MissingDependencyMessageIsInformative()
{
var cc = CreateContainer(typeof(UserOfUnregistered));
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void CycleMessageIsInformative()
{
var cc = CreateContainer(typeof(CycleA), typeof(CycleB), typeof(CycleC));
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void CardinalityViolationMessageIsInformative()
{
var cc = CreateContainer(typeof(ShouldBeOne), typeof(ButThereIsAnother), typeof(RequiresOnlyOne));
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void AConcreteTypeWithUnsupportedConstructorsCannotBeUsedAsAMetadataView()
{
var cc = new ContainerConfiguration()
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void UnsupportedMetadataViewMessageIsInformative()
{
var cc = new ContainerConfiguration().WithParts(typeof(ImportsWithMetadataInterface), typeof(ExportsWithMetadata)).CreateContainer();
// In future, the set of allowable generic type mappings will be expanded (see
// ignored tests above).
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void TypesWithMismatchedGenericParameterListsAreDetectedDuringDiscovery()
{
var x = Assert.Throws<CompositionFailedException>(() => CreateContainer(typeof(RepositoryWithKey<,>)));
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void TypesWithNonGenericExportsAreDetectedDuringDiscovery()
{
var x = Assert.Throws<CompositionFailedException>(() => CreateContainer(typeof(RepositoryWithNonGenericExport<>)));
/// we fail only when we create instance of B.. is that correct.
/// </summary>
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50919", TestPlatforms.Android)]
public void BoundaryExposedBoundaryButNoneImported()
{
try
public class FlushAsyncCompletionTests : PipeTest
{
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50927", TestPlatforms.Android)]
public void AwaitingFlushAsyncAwaitableTwiceCompletesReaderWithException()
{
async Task Await(ValueTask<FlushResult> a)
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50927", TestPlatforms.Android)]
public async Task DoubleFlushAsyncThrows()
{
Pipe.Writer.WriteEmpty(65);
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50927", TestPlatforms.Android)]
public async Task AdvanceAfterCompleteThrows()
{
await _pipe.Writer.WriteAsync(new byte[1]);
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50927", TestPlatforms.Android)]
public async Task DoubleAsyncReadThrows()
{
ValueTask<ReadResult> readTask1 = _pipe.Reader.ReadAsync();
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50927", TestPlatforms.Android)]
public async Task AdvanceWithoutReadThrows()
{
await _pipe.Writer.WriteAsync(new byte[3]);
public class ReadAsyncCompletionTests : PipeTest
{
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50927", TestPlatforms.Android)]
public void AwaitingReadAsyncAwaitableTwiceCompletesWriterWithException()
{
async Task Await(ValueTask<ReadResult> a)
public class LoggingTest
{
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50999", TestPlatforms.Android)]
public void EventSource_ExistsWithCorrectId()
{
Type esType = typeof(SmtpClient).Assembly.GetType("System.Net.NetEventSource", throwOnError: true, ignoreCase: false);
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50999", TestPlatforms.Android)]
public void TestConstructorWithStringArgument()
{
string msg;
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50999", TestPlatforms.Android)]
public void TestConstructorWithStatusCodeAndStringArgument()
{
string msg;
public class LoggingTest
{
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50928", TestPlatforms.Android)]
public static void EventSource_ExistsWithCorrectId()
{
Type esType = typeof(Dns).Assembly.GetType("System.Net.NetEventSource", throwOnError: true, ignoreCase: false);
}
[ConditionalFact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50928", TestPlatforms.Android)]
public void GetHostEntry_InvalidHost_LogsError()
{
using (var listener = new TestEventListener("Private.InternalDiagnostics.System.Net.NameResolution", EventLevel.Error))
}
[ConditionalFact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50928", TestPlatforms.Android)]
public async Task GetHostEntryAsync_InvalidHost_LogsError()
{
using (var listener = new TestEventListener("Private.InternalDiagnostics.System.Net.NameResolution", EventLevel.Error))
}
[ConditionalFact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50928", TestPlatforms.Android)]
public void GetHostEntry_ValidName_NoErrors()
{
using (var listener = new TestEventListener("Private.InternalDiagnostics.System.Net.NameResolution", EventLevel.Verbose))
public class TelemetryTest
{
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50928", TestPlatforms.Android)]
public static void EventSource_ExistsWithCorrectId()
{
Type esType = typeof(Dns).Assembly.GetType("System.Net.NameResolutionTelemetry", throwOnError: true, ignoreCase: false);
//[Variation(Id = 5, Desc = "WriteCData with ]]>", Priority = 1)]
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50944", TestPlatforms.Android)]
public void WriteCDataWithTwoClosingBrackets_5()
{
XDocument doc = new XDocument();
//[Variation(Id = 6, Desc = "WriteComment with -- in value", Priority = 1)]
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50944", TestPlatforms.Android)]
public void WriteCommentWithDoubleHyphensInValue()
{
XDocument doc = new XDocument();
//[Variation(Id = 11, Desc = "Include PI end tag ?> as part of the text value", Priority = 1)]
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50944", TestPlatforms.Android)]
public void IncludePIEndTagAsPartOfTextValue()
{
XDocument doc = new XDocument();
private static string _invalidCharInThisEncoding = "Invalid character in the given encoding";
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50945", TestPlatforms.Android)]
public static void ReadWithSurrogateCharAndInvalidChar()
{
// {60, 0, 0, 0} is a normal char, {0, 34, 1, 0} is a surrogate char {62, 100, 60, 47} is an invalid char
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50945", TestPlatforms.Android)]
public static void ReadWithNormalCharAndInvalidChar()
{
// {60, 0, 0, 0, 65, 0, 0, 0} are normal chars, {62, 100, 60, 47} is an invalid char, similar bytes used below tests
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50945", TestPlatforms.Android)]
public static void ReadWithSurrogateCharAndInvalidChar_ValidXmlStructure()
{
var bytes = new byte[] { 60, 0, 0, 0, 97, 0, 0, 0, 62, 0, 0, 0, 0, 34, 1, 0, 62, 100, 60, 47, 60, 0, 0, 0, 47, 0, 0, 0, 97, 0, 0, 0, 62, 0, 0, 0 };
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50945", TestPlatforms.Android)]
public static void ReadWithSurrogateCharAsElementName()
{
var bytes = new byte[] { 60, 0, 0, 0, 0, 34, 1, 0, 65, 0, 0, 0, 97, 0, 0, 0 };
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50945", TestPlatforms.Android)]
public static void BytesStartingWithInvalidChar()
{
var bytes = new byte[] { 62, 100, 60, 47, 60, 0, 0, 0, 0, 34, 1, 0, 65, 0, 0, 0, 97, 0, 0, 0 };
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50945", TestPlatforms.Android)]
public static void BytesEndingWithInvalidChar()
{
var bytes = new byte[] { 60, 0, 0, 0, 97, 0, 0, 0, 62, 0, 0, 0, 65, 0, 0, 0, 65, 0, 0, 0, 97, 0, 0, 0, 62, 100, 60, 47};
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50945", TestPlatforms.Android)]
public static void ReadWithIncompleteBytes()
{
var bytes = new byte[] { 60, 0, 0, 0, 97, 0, 0, 0, 65, 0, 0, 0, 97, 62, 10};
<!-- https://github.com/dotnet/runtime/issues/50880 -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Collections\tests\System.Collections.Tests.csproj" />
- <!-- https://github.com/dotnet/runtime/issues/50916 -->
- <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.ComponentModel.TypeConverter\tests\System.ComponentModel.TypeConverter.Tests.csproj" />
-
<!-- https://github.com/dotnet/runtime/issues/50923 -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Data.Common\tests\System.Data.Common.Tests.csproj" />
<!-- https://github.com/dotnet/runtime/issues/49936 -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Text.Json\tests\System.Text.Json.Tests\System.Text.Json.Tests.csproj" />
- <!-- https://github.com/dotnet/runtime/issues/50946 -->
- <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Private.Xml\tests\XmlSchema\XmlSchemaValidatorApi\System.Xml.XmlSchema.XmlSchemaValidatorApi.Tests.csproj" />
-
- <!-- https://github.com/dotnet/runtime/issues/50947 -->
- <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Private.Xml\tests\XmlSchema\XmlSchemaSet\System.Xml.XmlSchemaSet.Tests.csproj" />
-
- <!-- https://github.com/dotnet/runtime/issues/50948 -->
- <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Private.Xml\tests\Xslt\XslCompiledTransformApi\System.Xml.Xsl.XslCompiledTransformApi.Tests.csproj" />
-
- <!-- https://github.com/dotnet/runtime/issues/50950 -->
- <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Private.Xml\tests\Xslt\XslTransformApi\System.Xml.Xsl.XslTransformApi.Tests.csproj" />
-
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Net.Http\tests\FunctionalTests\System.Net.Http.Functional.Tests.csproj" />
<!-- Execution may be compromised -->