コード例 #1
0
            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);
            }
コード例 #2
0
 public override void describeTo(Description description)
 {
     description.appendText("Raft group: ").appendValue(_raftGroup);
 }
コード例 #3
0
ファイル: StreamMatchers.cs プロジェクト: Neo4Net/Neo4Net
 public override void describeTo(Description description)
 {
     description.appendText("Record[").appendList(", fields=[", ",", "]", asList(_expectedFieldValues));
 }
コード例 #4
0
ファイル: StreamMatchers.cs プロジェクト: Neo4Net/Neo4Net
 public override void describeTo(Description description)
 {
     description.appendText("Value = " + _input);
 }
コード例 #5
0
 public override void DescribeTo(Description description)
 {
     description.appendText((new TruncateLogCommand(TruncateIndex)).ToString());
 }
コード例 #6
0
 public override void DescribeTo(Description description)
 {
     description.appendText(" expected message: '").appendText(_expectedMessage).appendText("', but was: '").appendText(_actualMessage).appendText("'");
 }
コード例 #7
0
 public override void DescribeTo(Description descr)
 {
     descr.appendText(string.Format("expected {0}, got {1}", ToString(Expected), ToString(Actual)));
 }
コード例 #8
0
 public override void describeTo(org.hamcrest.Description description)
 {
     description.appendText("Thread blocked in state WAITING");
 }
コード例 #9
0
 public override void DescribeTo(Description description)
 {
     description.appendText("Byte array should contain only zeroes");
 }
コード例 #10
0
 protected internal override void DescribeMismatchSafely(Org.Neo4j.Kernel.Api.Exceptions.Status_HasStatus item, Description mismatchDescription)
 {
     mismatchDescription.appendText("was ").appendValue(item.Status());
 }
コード例 #11
0
 public override void DescribeTo(Description description)
 {
     description.appendText("expects status ").appendValue(Status);
 }
コード例 #12
0
 public override void describeTo(Description description)
 {
     description.appendText("Log should not contain entry at index ").appendValue(_index);
 }
コード例 #13
0
 public override void describeTo(org.hamcrest.Description description)
 {
     description.appendText(_trait).appendText(" should be equal");
 }
コード例 #14
0
 public override void DescribeTo(Description description)
 {
     description.appendText("matches regular expression ").appendValue(_pattern);
 }
コード例 #15
0
            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(" )");
            }
コード例 #16
0
 private void DescribeArray(long[] value, Description description)
 {
     description.appendText("long[]").appendText(Arrays.ToString(value));
 }
コード例 #17
0
 public override void describeTo(org.hamcrest.Description description)
 {
     description.appendText("Eventually close all transactions");
 }
コード例 #18
0
 public override void DescribeTo(Description description)
 {
     description.appendText("a string matching /");
     description.appendText(_pattern.ToString());
     description.appendText("/");
 }