public void NavigationDataValueProviderValueCaseInsensitiveTest() { StateController.Navigate("d0"); StateController.Navigate("t0", new NavigationData { { "a", 1 } }); NavigationDataWebApiValueProvider valueProvider = new NavigationDataWebApiValueProvider(); Assert.AreEqual(1, ((ValueProviderResult)valueProvider.GetValue("A")).RawValue); Assert.AreEqual("1", ((ValueProviderResult)valueProvider.GetValue("A")).AttemptedValue); }
public void NavigationDataValueProviderNullValueTest() { StateController.Navigate("d0"); StateController.Navigate("t0", new NavigationData { { "a", 1 } }); NavigationDataWebApiValueProvider valueProvider = new NavigationDataWebApiValueProvider(); Assert.IsNull(valueProvider.GetValue("b")); }
public void NavigationDataValueProviderNullKeyTest() { StateController.Navigate("d0"); StateController.Navigate("t0", new NavigationData { { "a", 1 } }); NavigationDataWebApiValueProvider valueProvider = new NavigationDataWebApiValueProvider(); valueProvider.GetValue(null); }