TODO: write about...
- Libraries to import/use
- MbUnit.Framework
- MoQ
- System.Linq
- System.Linq.Expressions
- System.Web - for abstractions - System.Web.Annotations.dll
- Version-specific pages
- Things to mock
- How to MoQ
- Attributes to use: {[Test], [Description], [SetUp], [TestFixture], [Annotation], [Ignore], [Row], [Rollback] (for SqlDataProvider, perhaps)}
- Mock Methods:
- .Object
- .Setup
- .Raise
- .Verify
- Other stuff in MoQ
- Expecting exceptions
- It.IsAny<T>()
- Times.Never(), Times.Once(), Times.AtLeastOnce(), etc.
- Creating the Presenter Object for testing
- Dependency Injection and the Greedy Constructor
- Initializer to set properties
- Common Presenter properties (from base class)
- HttpContext
- ModuleId, TabId
- ?? PortalSettings and/or Settings
- Types of tests to write
- Constructors & null parameters
- Constructor calls base constructor (to set View's Model)
- Looking to the IView object for things to check
- Presenter.OnInit code (when overridden)
- Presenter properties (such as those populated from PortalSettings)