Пример #1
0
        public void TestDropWithKeyOnlyCalledOnce()
        {
            _context["counter"] = new CounterDrop();

            Assert.AreEqual(1, _context["counter['count']"]);
            Assert.AreEqual(2, _context["counter['count']"]);
            Assert.AreEqual(3, _context["counter['count']"]);
        }
Пример #2
0
        public void TestDropWithVariableCalledOnlyOnce()
        {
            _context["counter"] = new CounterDrop();

            Assert.AreEqual(1, _context["counter.count"]);
            Assert.AreEqual(2, _context["counter.count"]);
            Assert.AreEqual(3, _context["counter.count"]);
        }
Пример #3
0
		public void TestDropWithKeyOnlyCalledOnce()
		{
			_context["counter"] = new CounterDrop();

			Assert.AreEqual(1, _context["counter['count']"]);
			Assert.AreEqual(2, _context["counter['count']"]);
			Assert.AreEqual(3, _context["counter['count']"]);
		}
Пример #4
0
		public void TestDropWithVariableCalledOnlyOnce()
		{
			_context["counter"] = new CounterDrop();

			Assert.AreEqual(1, _context["counter.count"]);
			Assert.AreEqual(2, _context["counter.count"]);
			Assert.AreEqual(3, _context["counter.count"]);
		}