Example #1
0
        protected override void AssertValueIsCorrect(int[] expected, TypedValue actual)
        {
            // Default comparison doesn't work with the arrays we're using, so do it the hard way.

            // Copy the lookup IDs into a collection.
            var actualValues = new List <int>(actual?.GetValueAsLookups()?.Cast <Lookup>().Select(l => l.Item));

            // Make sure we have the same data.
            Assert.AreEqual(expected.Length, actualValues.Count);
            for (var i = 0; i < expected.Length; i++)
            {
                Assert.AreEqual(expected[i], actualValues[i]);
            }
        }