예제 #1
0
        public void T12d_EvalDouble_SpéciauxErreurs(int indice, Type tException, params string[] messages)
        {
            var ex = Throwed <Exception>(
                () => ArbreBin <string, string> .EvalDouble(
                    ArbresSyntaxiquesSpéciaux().ElementAt(indice - 1)));

            IsNotNull(ex);
            if (ex != null)
            {
                AreEqual(tException, ex.GetType());
                foreach (var message in messages)
                {
                    StringAssert.Contains(ex.Message.ToLower(), message.ToLower());
                }
            }
        }
예제 #2
0
 public static ArbreBin <T, T> .Noeud?CheckParentsBy <T>(ArbreBin <T, T> .Noeud?arbre)
     where T : notnull, IComparable <T>
 {
     CheckParents(arbre);
     return(arbre);
 }