예제 #1
0
        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);
        }
예제 #2
0
 public Validation(TreeNodeDifference expected, Func <CompareNode, TreeNodeDifference> getActual)
 {
     Expected  = expected;
     GetActual = getActual;
 }