Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/TreeNodeInfos/CalculationTreeNodeInfoFactoryTest.cs =================================================================== diff -u -rc3031f6290e2975c6a136b4b9327ae7fbd64c6b1 -rbeb186ed6c65b33af4f81902662b4f31e5b74d17 --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/TreeNodeInfos/CalculationTreeNodeInfoFactoryTest.cs (.../CalculationTreeNodeInfoFactoryTest.cs) (revision c3031f6290e2975c6a136b4b9327ae7fbd64c6b1) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/TreeNodeInfos/CalculationTreeNodeInfoFactoryTest.cs (.../CalculationTreeNodeInfoFactoryTest.cs) (revision beb186ed6c65b33af4f81902662b4f31e5b74d17) @@ -21,6 +21,7 @@ using System; using System.Linq; +using System.Windows.Forms; using Core.Common.Base; using Core.Common.Controls.TreeView; using Core.Common.TestUtil; @@ -41,6 +42,27 @@ # region CreateCalculationGroupContextTreeNodeInfo [Test] + public void CreateCalculationGroupContextTreeNodeInfo_Always_ExpectedPropertiesSet() + { + // Setup & Call + Func childNodeObjects = context => new object[0]; + Func contextMenuStrip = (context, parent, treeViewControl) => new ContextMenuStrip(); + Action onNodeRemoved = (context, parent) => { }; + + var treeNodeInfo = CalculationTreeNodeInfoFactory.CreateCalculationGroupContextTreeNodeInfo(childNodeObjects, contextMenuStrip, onNodeRemoved); + + // Assert + Assert.AreEqual(typeof(TestCalculationGroupContext), treeNodeInfo.TagType); + Assert.AreSame(childNodeObjects, treeNodeInfo.ChildNodeObjects); + Assert.AreSame(contextMenuStrip, treeNodeInfo.ContextMenuStrip); + Assert.AreSame(onNodeRemoved, treeNodeInfo.OnNodeRemoved); + Assert.IsNull(treeNodeInfo.ForeColor); + Assert.IsNull(treeNodeInfo.CanCheck); + Assert.IsNull(treeNodeInfo.IsChecked); + Assert.IsNull(treeNodeInfo.OnNodeChecked); + } + + [Test] public void TextOfCalculationGroupContextTreeNodeInfo_Always_ReturnsWrappedDataName() { // Setup