public void Can_Get_a_CMSPage_In_Other_Language_But_English() { //Arrange IPagesRepository repository = UnitTestHelpers.MockPagesRepository( new Page { Path = "A", Language = "en" }, new Page { Path = "A", Language = "es" }, new Page { Path = "B", Language = "en" } ); var controller = new NavController(repository); //Act var result = controller.Page("A", "es") as ViewResult; //Assert ((Page)result.Model).Language.ShouldEqual("es"); }