mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-23 15:30:34 -04:00
14 lines
298 B
C#
14 lines
298 B
C#
using System.Reflection;
|
|
using Xunit;
|
|
|
|
namespace Kyoo.Tests
|
|
{
|
|
public static class KAssert
|
|
{
|
|
public static void DeepEqual<T>(T expected, T value)
|
|
{
|
|
foreach (PropertyInfo property in typeof(T).GetProperties())
|
|
Assert.Equal(property.GetValue(expected), property.GetValue(value));
|
|
}
|
|
}
|
|
} |