public static void VerifyKeys(IRxResult result, params string[] keys) { result.Keys() .WaitForCompletion() .AssertEqual( OnNext(0, MatchesKeys(keys)), OnCompleted <string[]>(0)); }
public static void VerifySummary(IRxResult result, string query = "fake") { result.Consume() .WaitForCompletion() .AssertEqual( OnNext(0, MatchesSummary(new { Query = new Query(query) }, opts => opts.ExcludingMissingMembers())), OnCompleted <IResultSummary>(0)); }
public static void VerifyRecords(IRxResult result, string[] keys, int recordsCount) { result.Records() .WaitForCompletion() .AssertEqual( Enumerable.Range(1, recordsCount).Select(r => OnNext(0, MatchesRecord(keys, Enumerable.Range(1, keys.Length).Select(f => $"{r:D3}_{f:D2}").Cast <object>() .ToArray()))) .Concat(new[] { OnCompleted <IRecord>(0) })); }