mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix MultiRootInheritanceGraph not detecting circular inheritance (#5672)
* Fix * This is better! * Fixes
This commit is contained in:
@@ -104,4 +104,11 @@ public sealed class MultiRootGraphTest
|
||||
Assert.Throws<InvalidOperationException>(() => graph.Add(Id3, new[] { Id1 }));
|
||||
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void IsOwnParentTest()
|
||||
{
|
||||
var graph = new MultiRootInheritanceGraph<string>();
|
||||
Assert.Throws<InvalidOperationException>(() => graph.Add(Id1, new []{ Id1 }));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user