mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
27 lines
713 B
C#
27 lines
713 B
C#
using mRemoteNG.Connection;
|
|
using mRemoteNG.Tree.Root;
|
|
using NUnit.Framework;
|
|
|
|
namespace mRemoteNGTests.Container
|
|
{
|
|
public class RootNodeInfoTests
|
|
{
|
|
[Test]
|
|
public void InheritanceIsDisabledForNodesDirectlyUnderRootNode()
|
|
{
|
|
var expected = "UnInheritedValue";
|
|
var rootNode = new RootNodeInfo(RootNodeType.Connection)
|
|
{
|
|
Description = "thisCameFromTheRootNode"
|
|
};
|
|
var con1 = new ConnectionInfo
|
|
{
|
|
Description = expected,
|
|
Inheritance = { Description = true }
|
|
};
|
|
rootNode.AddChild(con1);
|
|
Assert.That(con1.Description, Is.EqualTo(expected));
|
|
}
|
|
}
|
|
}
|