protected internal override bool matchesSafely(T actual, org.hamcrest.Description mismatchDescription) { U e = _mapping(_expected); U a = _mapping(actual); if (Objects.Equals(e, a)) { return(true); } mismatchDescription.appendText("- "); mismatchDescription.appendText("expected: ").appendValue(e); mismatchDescription.appendText(" but was: ").appendValue(a); return(false); }
protected internal override bool MatchesSafely(long[] items, Description mismatchDescription) { DescribeArray(items, mismatchDescription); if (items.Length != _expectedArray.Length) { return(false); } for (int i = 0; i < items.Length; i++) { if (items[i] != _expectedArray[i]) { return(false); } } return(true); }
public override void describeTo(Description description) { description.appendValue(_left); description.appendValue(_right); }
public override void DescribeTo(Description descr) { descr.appendText(string.Format("expected {0}, got {1}", ToString(Expected), ToString(Actual))); }
private void DescribeArray(long[] value, Description description) { description.appendText("long[]").appendText(Arrays.ToString(value)); }
public override void describeTo(org.hamcrest.Description description) { description.appendText("Thread blocked in state WAITING"); }
public override void DescribeTo(Description description) { //JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.getName method: description.appendText(typeof(DirectRecordReference).FullName).appendText("( ").appendValue(Record).appendText(" )"); }
public override void describeTo(Description description) { description.appendText("Record[").appendList(", fields=[", ",", "]", asList(_expectedFieldValues)); }
public override void DescribeTo(Description description) { description.appendText((new TruncateLogCommand(TruncateIndex)).ToString()); }
public override void DescribeTo(Description description) { description.appendText("expects status ").appendValue(Status); }
public override void describeTo(Description description) { description.appendText("Log should not contain entry at index ").appendValue(_index); }
public override void describeTo(org.hamcrest.Description description) { description.appendText(_trait).appendText(" should be equal"); }
public override void describeTo(Description description) { }
public override void DescribeTo(Description description) { description.appendText("matches regular expression ").appendValue(_pattern); }
public override void describeTo(Description description) { description.appendValueList("[", ",", "]", _expectedItems); }
public override void DescribeTo(Description description) { description.appendText(" expected message: '").appendText(_expectedMessage).appendText("', but was: '").appendText(_actualMessage).appendText("'"); }
protected internal override void DescribeMismatchSafely(Org.Neo4j.Kernel.Api.Exceptions.Status_HasStatus item, Description mismatchDescription) { mismatchDescription.appendText("was ").appendValue(item.Status()); }
public override void describeTo(Description description) { description.appendText("Value = " + _input); }
public override void DescribeTo(Description description) { description.appendText("Byte array should contain only zeroes"); }
public override void describeTo(Description description) { description.appendText("Raft group: ").appendValue(_raftGroup); }
public override void DescribeTo(Description description) { DescribeArray(_expectedArray, description); }
public override void describeTo(org.hamcrest.Description description) { description.appendText("Eventually close all transactions"); }
public override void DescribeTo(Description description) { description.appendText("a string matching /"); description.appendText(_pattern.ToString()); description.appendText("/"); }