public void DisplayText_NewObject_ReturnsEmtpyStringsInStringArr() { InheritedTreeViewItem InheritedTreeViewItem = GetNewTreeViewItem(); var expected = new string[] { "", "" }; Assert.AreEqual(expected, InheritedTreeViewItem.DisplayText); }
public void EditText_NewObject_ReturnsStringArrToEdit() { InheritedTreeViewItem InheritedTreeViewItem = GetNewTreeViewItem(); var expected = new string[] { "", "" }; Assert.AreEqual(expected, InheritedTreeViewItem.EditText); }
public void AddParent_NewObject_AddParentObjectToChild() { InheritedTreeViewItem child = GetNewTreeViewItem(); InheritedTreeViewItem parent = GetNewTreeViewItem(); child.AddParent(parent); Assert.AreEqual(child.Parent.GetHashCode(), parent.GetHashCode()); }
public void NeedDisable_NewObject_ReturnsTheSameValue( bool actualValue, bool expectedValue) { InheritedTreeViewItem property = GetNewTreeViewItem(); property.NeedDisable = actualValue; Assert.AreEqual(expectedValue, property.NeedDisable); }
public void MarkToCut_NewObject_ReturnsTheSameValue(bool actualValue, bool expectedValue) { InheritedTreeViewItem property = GetNewTreeViewItem(); property.MarkToCut = actualValue; Assert.AreEqual(expectedValue, property.MarkToCut); }
public void Parent_NewProperty_TheSameValue() { InheritedTreeViewItem parentProperty = GetNewTreeViewItem(); InheritedTreeViewItem checkingProperty = GetNewTreeViewItem(); checkingProperty.Parent = parentProperty; Assert.AreEqual(parentProperty.GetHashCode(), checkingProperty.Parent.GetHashCode()); }
public void GetDisplayObjects_NewObject_ReturnsNullAndFalse() { InheritedTreeViewItem property = GetNewTreeViewItem(); property.GetDisplayObjects(out Device.DeviceType[] devTypes, out Device.DeviceSubType[] devSubTypes, out bool displayParameters); Assert.IsNull(devTypes); Assert.IsNull(devSubTypes); Assert.IsFalse(displayParameters); }