This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixture] | |
public class GlassControllerHttpContextTests | |
{ | |
[Test] | |
public void GlassController_can_get_query_string_from_http_context_mock() | |
{ | |
// Arrange | |
var testHarness = new GlassControllerTestHarness(); | |
NameValueCollection nvc = new NameValueCollection(); | |
nvc.Add("fred", "flintstone"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixture] | |
public class GlassControllerRenderingParametersTests | |
{ | |
[Test] | |
public void GlassController_can_set_and_get_rendering_parameters() | |
{ | |
// Arrange | |
StubClass classToReturn = new StubClass(); | |
var testHarness = new GlassControllerTestHarness(); | |
testHarness.RenderingContextWrapper.ContextActive.Returns(true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
[Timeout(120000)] | |
public void GetWholeDb() | |
{ | |
var rawItem = _db.GetItem("/sitecore"); | |
_service.Cast<StubForWholeDb>(rawItem); | |
Item[] items = rawItem.Axes.GetDescendants(); | |
_glassWatch.Reset(); | |
_rawWatch.Reset(); |
NewerOlder