Ejemplo n.º 1
0
		public void RefreshResultChildActionTest()
		{
			StateController.Navigate("d0");
			StateController.Navigate("t0", new NavigationData { { "a", 1 } });
			RefreshResult result = new RefreshResult();
			result.ExecuteResult(GetControllerContext(true));
		}
Ejemplo n.º 2
0
		public void RefreshResultTest()
		{
			StateController.Navigate("d0");
			StateController.Navigate("t0", new NavigationData { { "a", 1 } });
			RefreshResult result = new RefreshResult();
			result.ExecuteResult(GetControllerContext(false));
			Assert.AreEqual("s1", StateContext.State.Key);
			Assert.IsNull(StateContext.Bag.a);
		}
Ejemplo n.º 3
0
		public void RefreshResultNullContextTest()
		{
			StateController.Navigate("d0");
			StateController.Navigate("t0", new NavigationData { { "a", 1 } });
			RefreshResult result = new RefreshResult();
			result.ExecuteResult(null);
		}