Ejemplo n.º 1
0
        public void AppStateBase_ToFixedUrl_Root_Blank()
        {
            var state = new AppStateBase(new TestableNavigationManager(), null);

            state.ToRelativeUrl("").Should().Be("");
        }
Ejemplo n.º 2
0
        public void AppStateBase_ToFixedUrl_NotRoot_Parameter_Slash()
        {
            var state = new AppStateBase(new TestableNavigationManager(), null);

            state.ToRelativeUrl("/2/Hello").Should().Be("2/Hello");
        }
        public void AppStateBase_ToFixedUrl_NotRoot_NoParameter_NoSlash()
        {
            var state = new AppStateBase(new TestableNavigationManager("https://localhost/"), null);

            state.ToRelativeUrl("2").Should().Be("2");
        }