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); }
public void In_2_Valid_Value_Does_Not_Throw_Exception() { Insist.In("Hello", new string[] { "Hello" }, ARGUMENT_NAME, MESSAGE); }
public void In_2_Invalid_Value_Throws_Exception() { Insist.In("Hello", new string[] { "World" }, ARGUMENT_NAME, MESSAGE); }
public void In_2_Null_Or_Empty_Argument_Name_Throws_Exception(string argName) { Insist.In("Hello", new string[] { "Hello" }, argName, MESSAGE); }