ArgsTests.Pages.PageStackTests.ExpectBadRoute C# (CSharp) Метод

ExpectBadRoute() приватный Метод

private ExpectBadRoute ( string badRoute ) : void
badRoute string
Результат void
        private void ExpectBadRoute(string badRoute)
        {
            PageStack stack = new PageStack();
            try
            {
                stack.RegisterRoute(badRoute, () => new Page());
                Assert.Fail("An exception should have been thrown for bad route: "+ badRoute);
            }
            catch (FormatException) { }
        }