Exemple #1
0
        public void In_2_Null_Or_Empty_User_Message_Uses_Default_Message(string userMessage)
        {
            string message = null;

            try {
                Insist.In("Hello", new string[] { "World" }, ARGUMENT_NAME, userMessage);
            } catch (ArgumentException e) {
                message = e.Message;
            }

            Assert.IsNotNull(message);
        }
Exemple #2
0
 public void In_2_Valid_Value_Does_Not_Throw_Exception()
 {
     Insist.In("Hello", new string[] { "Hello" }, ARGUMENT_NAME, MESSAGE);
 }
Exemple #3
0
 public void In_2_Invalid_Value_Throws_Exception()
 {
     Insist.In("Hello", new string[] { "World" }, ARGUMENT_NAME, MESSAGE);
 }
Exemple #4
0
 public void In_2_Null_Or_Empty_Argument_Name_Throws_Exception(string argName)
 {
     Insist.In("Hello", new string[] { "Hello" }, argName, MESSAGE);
 }