[Theory]
[InlineData(null)]
[InlineData("")]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50868", TestPlatforms.Android)]
public void AddJsonFile_ThrowsIfFilePathIsNullOrEmpty(string path)
{
// Arrange
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50868", TestPlatforms.Android)]
public void AddJsonFile_ThrowsIfFileDoesNotExistAtPath()
{
// Arrange
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50868", TestPlatforms.Android)]
public void ThrowExceptionWhenUnexpectedEndFoundBeforeFinishParsing()
{
var json = @"{
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50868", TestPlatforms.Android)]
public void ThrowExceptionWhenMissingCurlyBeforeFinishParsing()
{
var json = @"
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50868", TestPlatforms.Android)]
public void JsonConfiguration_Throws_On_Missing_Configuration_File()
{
var config = new ConfigurationBuilder().AddJsonFile("NotExistingConfig.json", optional: false);
}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/50868", TestPlatforms.Android)]
public void ThrowFormatExceptionWhenFileIsEmpty()
{
var exception = Assert.Throws<FormatException>(() => LoadProvider(@""));