Example #1
0
        void CompareCallSets(TestRunItem runItem, string name)
        {
            var dict = runItem.TestRunData as List <Dictionary <string, object> >;

            if (dict == null || dict.Count == 0)
            {
                Assert.Fail("No call data recorded.");
            }

            RequestValidatorCallSet cs = RequestValidatorCallSetContainer.GetCallSet(name);

            if (cs == null)
            {
                Assert.Fail("Call set \"{0}\" not found.", name);
            }

            foreach (Dictionary <string, object> calls in dict)
            {
                if (!cs.ContainsCallSet(calls))
                {
                    Assert.Fail("{0}: call sequence not found:{1}{2}", name, Environment.NewLine, SummarizeCallSet(calls));
                }
            }
        }
Example #2
0
		public static void Register (RequestValidatorCallSet callSet)
		{
			CallSets.Add (callSet);
		}
Example #3
0
 public static void Register(RequestValidatorCallSet callSet)
 {
     CallSets.Add(callSet);
 }