public void FlagEnum_Implicit_FromFlagEnum() { var value = new FlagEnum <TreeNodeDifference>(TreeNodeDifference.Name | TreeNodeDifference.NumberOfChildren); TreeNodeDifference enumValue = value; Assert.IsTrue((enumValue & TreeNodeDifference.Name) == TreeNodeDifference.Name); Assert.IsTrue((enumValue & TreeNodeDifference.NumberOfChildren) == TreeNodeDifference.NumberOfChildren); }
public Validation(TreeNodeDifference expected, Func <CompareNode, TreeNodeDifference> getActual) { Expected = expected; GetActual = getActual; }