mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 07:47:21 +00:00
Upgraded to .NET 10 (#1147)
This commit is contained in:
1 parent
faae2951f7
commit
fc7399e81b
327 files changed
+3059
-3049
No files matched your search
@@ -19,11 +19,11 @@ public sealed class PluginConfigurationObjectDescriptorsTests
|
||||
var describedTypes = PluginConfigurationObjectDescriptors.ALL.Select(descriptor => descriptor.Type).ToList();
|
||||
var configurableTypes = Enum.GetValues<PluginConfigurationObjectType>().Where(type => type is not PluginConfigurationObjectType.NONE and not PluginConfigurationObjectType.UNKNOWN);
|
||||
|
||||
Assert.Multiple(() =>
|
||||
using (Assert.EnterMultipleScope())
|
||||
{
|
||||
Assert.That(describedTypes, Is.EquivalentTo(configurableTypes));
|
||||
Assert.That(describedTypes, Is.Unique, "A type described twice would be read and cleaned up twice.");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -31,17 +31,17 @@ public sealed class PluginConfigurationObjectDescriptorsTests
|
||||
{
|
||||
var tableNames = PluginConfigurationObjectDescriptors.ALL.Select(descriptor => descriptor.LuaTableName).ToList();
|
||||
|
||||
Assert.Multiple(() =>
|
||||
using (Assert.EnterMultipleScope())
|
||||
{
|
||||
Assert.That(tableNames, Has.None.Empty);
|
||||
Assert.That(tableNames, Is.Unique, "Two types reading the same table would each take the objects of the other.");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EveryDescriptorIsFoundByItsTypeAndByItsTable()
|
||||
{
|
||||
Assert.Multiple(() =>
|
||||
using (Assert.EnterMultipleScope())
|
||||
{
|
||||
foreach (var descriptor in PluginConfigurationObjectDescriptors.ALL)
|
||||
{
|
||||
@@ -49,7 +49,7 @@ public sealed class PluginConfigurationObjectDescriptorsTests
|
||||
Assert.That(PluginConfigurationObjectDescriptors.TryGet(descriptor.LuaTableName, out var found), Is.True, descriptor.LuaTableName);
|
||||
Assert.That(found, Is.SameAs(descriptor), descriptor.LuaTableName);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
[TestCase(PluginConfigurationObjectType.NONE)]
|
||||
|
||||
Reference in new issue
Block a user