public void ThrowAnException_WhenCalledWithANullRouteData()
 {
     var factory = new MenuStateFactory();
     Assert.Throws<ArgumentNullException>(() => factory.Create(null));
 }
 public void ReturnAMenuState_WhenCalledWithANonNullRouteData()
 {
     var factory = new MenuStateFactory();
     var menuState = factory.Create(new RouteData());
     Assert.IsInstanceOf<MenuState>(menuState);
 }