// ICU4N specific overload for handling ICharSequence internal static bool assertEquals(string message, object expected, ICharSequence actual) { bool result = expected == null ? actual == null : actual.Equals(expected); return(handleAssert(result, message, StringFor(expected), StringFor(actual))); }
// ICU4N specific overload for handling ICharSequence internal static bool assertNotEquals(string message, ICharSequence expected, object actual) { bool result = !(expected == null ? actual == null : expected .Equals(actual)); return(handleAssert(result, message, StringFor(expected), StringFor(actual), "not equal to", true)); }
public void TestEqual() { ICharSequence other = new CharSequence( new char[] { 'g', 'a', 'u', 'f', 'u', 'n', 'g' }); Assert.AreEqual(true, _sequece.Equals(other)); }
static bool IsPassthru(HttpVersion version, int code, ICharSequence httpMethod) { switch (code) { case 204: case 304: return(true); case 200 when httpMethod.Equals(ZeroLengthConnect): return(true); default: if (code < 200) { return(true); } break; } return(httpMethod.Equals(ZeroLengthHead) || version.Equals(HttpVersion.Http10)); //return code < 200 || code == 204 || code == 304 // || (ReferenceEquals(httpMethod, ZeroLengthHead) || ReferenceEquals(httpMethod, ZeroLengthConnect) && code == 200) // || ReferenceEquals(version, HttpVersion.Http10); }