TestProject1.UtilityExtensions.Assert C# (CSharp) Method

Assert() public static method

public static Assert ( this m, string>.Dictionary names, int>.Dictionary expected ) : void
m this
names string>.Dictionary
expected int>.Dictionary
return void
        public static void Assert(this Marking m, 
            Dictionary<int, string> names, 
            Dictionary<string, int> expected)
        {
            foreach (var kvp in expected)
            {
                int idx = names.Where(x => x.Value == kvp.Key).Select(x => x.Key).Single();
                NUnit.Framework.Assert.AreEqual(kvp.Value, m[idx]);
            }
        }
UtilityExtensions