Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using System.Reflection;
|
|
|
|
using StabilityMatrix.Avalonia.DesignData;
|
|
|
|
|
|
|
|
namespace StabilityMatrix.Tests.Avalonia;
|
|
|
|
|
|
|
|
[TestClass]
|
|
|
|
public class DesignDataTests
|
|
|
|
{
|
|
|
|
[ClassInitialize]
|
|
|
|
public static void ClassInitialize(TestContext context)
|
|
|
|
{
|
|
|
|
StabilityMatrix.Avalonia.DesignData.DesignData.Initialize();
|
|
|
|
}
|
|
|
|
|
|
|
|
// Return all properties
|
|
|
|
public static IEnumerable<object[]> DesignDataProperties =>
|
|
|
|
typeof(StabilityMatrix.Avalonia.DesignData.DesignData).GetProperties()
|
|
|
|
.Select(p => new object[] { p });
|
|
|
|
|
|
|
|
[TestMethod]
|
|
|
|
[DynamicData(nameof(DesignDataProperties))]
|
|
|
|
public void Property_ShouldBeNotNull(PropertyInfo property)
|
|
|
|
{
|
|
|
|
var value = property.GetValue(null);
|
|
|
|
Assert.IsNotNull(value);
|
|
|
|
}
|
|
|
|
}
|