Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up messages and make all messages consistent #63

Merged
merged 11 commits into from
May 29, 2021
36 changes: 18 additions & 18 deletions source/TestFramework/TestFramework.cs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public static void NotEqual(bool a, bool b, string message = "")
return;
}

throw new Exception($"{a} is equal to {b}. {message}");
throw new Exception($"{a} should not be equal to {b}. {message}");
}

/// <summary>
Expand All @@ -323,7 +323,7 @@ public static void NotEqual(int a, int b, string message = "")
return;
}

throw new Exception($"{a} is equal to {b}. {message}");
throw new Exception($"{a} should not be equal to {b}. {message}");
}

/// <summary>
Expand All @@ -339,7 +339,7 @@ public static void NotEqual(Array a, Array b, string message = "")
return;
}

throw new Exception($"{a} is equal to {b}. {message}");
throw new Exception($"{a} should not be equal to {b}. {message}");
}

/// <summary>
Expand All @@ -355,7 +355,7 @@ public static void NotEqual(uint a, uint b, string message = "")
return;
}

throw new Exception($"{a} is equal to {b}. {message}");
throw new Exception($"{a} should not be equal to {b}. {message}");
}

/// <summary>
Expand All @@ -371,7 +371,7 @@ public static void NotEqual(short a, short b, string message = "")
return;
}

throw new Exception($"{a} is equal to {b}. {message}");
throw new Exception($"{a} should not be equal to {b}. {message}");
}

/// <summary>
Expand All @@ -387,7 +387,7 @@ public static void NotEqual(ushort a, ushort b, string message = "")
return;
}

throw new Exception($"{a} is equal to {b}. {message}");
throw new Exception($"{a} should not be equal to {b}. {message}");
}

/// <summary>
Expand All @@ -403,7 +403,7 @@ public static void NotEqual(long a, long b, string message = "")
return;
}

throw new Exception($"{a} is equal to {b}. {message}");
throw new Exception($"{a} should not be equal to {b}. {message}");
}

/// <summary>
Expand All @@ -419,7 +419,7 @@ public static void NotEqual(ulong a, ulong b, string message = "")
return;
}

throw new Exception($"{a} is equal to {b}. {message}");
throw new Exception($"{a} should not be equal to {b}. {message}");
}

/// <summary>
Expand All @@ -435,7 +435,7 @@ public static void NotEqual(byte a, byte b, string message = "")
return;
}

throw new Exception($"{a} is equal to {b}. {message}");
throw new Exception($"{a} should not be equal to {b}. {message}");
}

/// <summary>
Expand All @@ -451,7 +451,7 @@ public static void NotEqual(char a, char b, string message = "")
return;
}

throw new Exception($"{a} is equal to {b}. {message}");
throw new Exception($"{a} should not be equal to {b}. {message}");
}

/// <summary>
Expand All @@ -467,7 +467,7 @@ public static void NotEqual(sbyte a, sbyte b, string message = "")
return;
}

throw new Exception($"{a} is equal to {b}. {message}");
throw new Exception($"{a} should not be equal to {b}. {message}");
}

/// <summary>
Expand All @@ -483,7 +483,7 @@ public static void NotEqual(double a, double b, string message = "")
return;
}

throw new Exception($"{a} is equal to {b}. {message}");
throw new Exception($"{a} should not be equal to {b}. {message}");
}

/// <summary>
Expand All @@ -499,7 +499,7 @@ public static void NotEqual(float a, float b, string message = "")
return;
}

throw new Exception($"{a} is equal to {b}. {message}");
throw new Exception($"{a} should not be equal to {b}. {message}");
}

/// <summary>
Expand All @@ -515,7 +515,7 @@ public static void NotEqual(string a, string b, string message = "")
return;
}

throw new Exception($"{a} is equal to {b}. {message}");
throw new Exception($"{a} should not be equal to {b}. {message}");
}

#endregion
Expand Down Expand Up @@ -556,7 +556,7 @@ public static void DoesNotContains(string expected, string actual, string messag
return;
}

throw new Exception($"{actual} does not contains {expected}. {message}");
throw new Exception($"{actual} should not contain {expected}. {message}");
}

/// <summary>
Expand Down Expand Up @@ -623,7 +623,7 @@ public static void NotEmpty(ICollection collection, string message = "")
return;
}

throw new Exception($"{collection} is not empty. {message}");
throw new Exception($"{collection} should not be empty. {message}");
}

#endregion region
Expand Down Expand Up @@ -659,7 +659,7 @@ public static void IsNotType(Type type, object obj, string message = "")
return;
}

throw new Exception($"{obj} is not type of {type}. {message}");
throw new Exception($"{obj} should not be type of {type}. {message}");
}

/// <summary>
Expand Down Expand Up @@ -691,7 +691,7 @@ public static void NotSame(object a, object b, string message = "")
return;
}

throw new Exception($"{a} is the same as {b}. {message}");
throw new Exception($"{a} should not be the same as {b}. {message}");
}

/// <summary>
Expand Down