public void MatchTest() { foreach (ErrorType e in Enum.GetValues(typeof(ErrorType))) { Assert.AreEqual(GetErrorType.WithIf(e), GetErrorType.WithSwitch(e)); Assert.AreEqual(GetErrorType.WithIf(e), GetErrorType.WithToString(e)); Assert.AreEqual(GetErrorType.WithIf(e), GetErrorType.WithArray(e)); } }
public void WithArray() { foreach (ErrorType e in Enum.GetValues(typeof(ErrorType))) { for (int i = 0; i < max; i++) { Assert.IsNotNull(GetErrorType.WithArray(e)); } } }