Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/blame/commit/4c536a077f1d26f91121c09361b9447974bdfc3b/NzbDrone.Common.Test/ReflectionTests/ReflectionExtensionFixture.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using System.Reflection;
|
|
|
|
|
using FluentAssertions;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using NzbDrone.Common.Reflection;
|
|
|
|
|
using NzbDrone.Core.Datastore;
|
|
|
|
|
using NzbDrone.Test.Common;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Common.Test.ReflectionTests
|
|
|
|
|
{
|
|
|
|
|
public class ReflectionExtensionFixture : TestBase
|
|
|
|
|
{
|
|
|
|
|
[Test]
|
|
|
|
|
public void should_get_properties_from_models()
|
|
|
|
|
{
|
|
|
|
|
var models = Assembly.Load("NzbDrone.Core").ImplementationsOf<ModelBase>();
|
|
|
|
|
|
|
|
|
|
foreach (var model in models)
|
|
|
|
|
{
|
|
|
|
|
model.GetSimpleProperties().Should().NotBeEmpty();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void should_be_able_to_get_implementations()
|
|
|
|
|
{
|
|
|
|
|
var models = Assembly.Load("NzbDrone.Core").ImplementationsOf<ModelBase>();
|
|
|
|
|
|
|
|
|
|
models.Should().NotBeEmpty();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|