mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Split up test project
Robust.UnitTesting was both ALL tests for RT, and also API surface for content tests. Tests are now split into separate projects as appropriate, and the API side has also been split off.
This commit is contained in:
@@ -12,6 +12,12 @@
|
||||
[assembly: InternalsVisibleTo("Robust.Benchmarks")]
|
||||
[assembly: InternalsVisibleTo("Robust.Client.WebView")]
|
||||
[assembly: InternalsVisibleTo("Robust.Packaging")]
|
||||
[assembly: InternalsVisibleTo("Robust.Shared.Tests")]
|
||||
[assembly: InternalsVisibleTo("Robust.Server.IntegrationTests")]
|
||||
[assembly: InternalsVisibleTo("Robust.Server.Testing")]
|
||||
[assembly: InternalsVisibleTo("Robust.Shared.Testing")]
|
||||
[assembly: InternalsVisibleTo("Robust.Client.IntegrationTests")]
|
||||
[assembly: InternalsVisibleTo("Robust.Shared.IntegrationTests")]
|
||||
|
||||
#if NET5_0_OR_GREATER
|
||||
[module: SkipLocalsInit]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
@@ -107,7 +108,11 @@ namespace Robust.Shared.Reflection
|
||||
|
||||
public void LoadAssemblies(IEnumerable<Assembly> assemblies)
|
||||
{
|
||||
this.assemblies.AddRange(assemblies);
|
||||
var assembliesArray = assemblies.Distinct().ToArray();
|
||||
if (this.assemblies.Intersect(assembliesArray).Any())
|
||||
throw new InvalidOperationException("Attempted to load the same assembly multiple times!");
|
||||
|
||||
this.assemblies.AddRange(assembliesArray);
|
||||
_getAllTypesCache.Clear();
|
||||
OnAssemblyAdded?.Invoke(this, new ReflectionUpdateEventArgs(this));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user