示例#1
0
        public void IsLocalizedModelForForLocalizedControllerWithDifferentCultureReturnsFalse()
        {
            ControllerModel controller = TestApplicationModel.Instance.Controller1()
                                         .CreateLocalizedControllerModel(GetLocalizedRouteMarker(), ModelExtensionTest.Culture2);

            Assert.IsFalse(controller.IsLocalizedModelFor(GetLocalizedRouteMarker(), ModelExtensionTest.Culture));
        }
示例#2
0
        public void IsLocalizedModelForForUntranslatedControllerReturnsFalse()
        {
            ControllerModel controller = TestApplicationModel.Instance.Controller1();

            Assert.IsFalse(controller.IsLocalizedModelFor(GetLocalizedRouteMarker(), ModelExtensionTest.Culture));
        }