public static void IncrementCallCount()
        {
            var expectations = new ReadOnlyDictionary <string, ArgumentExpectation>(new Dictionary <string, ArgumentExpectation>());
            var information  = new HandlerInformation(expectations);

            information.IncrementCallCount();

            Assert.That(information.CallCount, Is.EqualTo(1), nameof(information.CallCount));
        }
        public static void VerifyWhenExpectedCallCountIsIncorrect()
        {
            var expectations = new ReadOnlyDictionary <string, ArgumentExpectation>(new Dictionary <string, ArgumentExpectation>());
            var information  = new HandlerInformation(2, expectations);

            information.IncrementCallCount();
            var result = information.Verify();

            Assert.That(result.Count, Is.EqualTo(1), nameof(result.Count));
        }
Пример #3
0
		public void VerifyWhenExpectedCallCountIsIncorrect()
		{
			var expectations = new ReadOnlyDictionary<string, ArgumentExpectation>(new Dictionary<string, ArgumentExpectation>());
			var information = new HandlerInformation(2, expectations);
			information.IncrementCallCount();
			var result = information.Verify();

         Assert.AreEqual(1, result.Count, nameof(result.Count));
		}
Пример #4
0
		public void IncrementCallCount()
		{
			var expectations = new ReadOnlyDictionary<string, ArgumentExpectation>(new Dictionary<string, ArgumentExpectation>());
			var information = new HandlerInformation(expectations);
			information.IncrementCallCount();

			Assert.AreEqual(1, information.CallCount, nameof(information.CallCount));
		}