NUnit.Framework.Assert.AreEqual(ulong, ulong, string, params object[])

Here are the examples of the csharp api class NUnit.Framework.Assert.AreEqual(ulong, ulong, string, params object[]) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

View license
private static void ValidateScan(IEnumerable<KeyValuePair<byte [], byte []>> scan, int keyCount, string pageStoreName)
        {
            int ix = 0;
            foreach (var keyValuePair in scan)
            {
                Assert.AreEqual((ulong) ix, BitConverter.ToUInt64(keyValuePair.Key, 0), "Unexpected key at index {0} in test store {1}", ix, pageStoreName);
                Assert.AreEqual(ix, BitConverter.ToInt32(keyValuePair.Value, 0), "Unexpected value at index {0} in test store {1}", ix, pageStoreName);
                ix++;
                Assert.IsTrue(ix <= keyCount, "Scan returned more entries than expected in test store {0}", pageStoreName);
            }
            Assert.AreEqual(keyCount, ix, "Scan returned unexpected number of entries in test store {0}",pageStoreName);
        }