CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Record Replay
C#
/// <summary>
/// Check that Close is called on the View when called on presenter and screen is not dirty
/// new AAA syntax
/// </summary>
[Test]
public void When_the_screen_is_not_dirty_can_close_AAA()
{
    // 1. Arrange
    var view = MockRepository.GenerateMock<IHumbleView>();
    view.Stub(x => x.IsDirty).Return(false);
by Cat   November 01, 2010 @ 9:14am
221 Views
no comments
 
C#
    /// <summary>
    /// Subject under test = InvoiceSender
    /// Want to verify that the IEmailService.Send(MailMessage) method is being called from SendInvoice(float, string)
    /// </summary>
    [Test]
    public void SendInvoiceUsingEmailService_RecordReplay()
    {
        var mocks = new MockRepository();
        // dependency
        var mockEmailService = mocks.DynamicMock<IEmailService>();
by Cat   October 21, 2010 @ 7:18am
128 Views
no comments
 
C#
[TestFixture]
public class LogAnalyzerTests
{
 
    /// <summary>
    /// using old Record / Replay syntax
    /// Class under test = LogAnalyzer
    /// Want to verify that the IWebService.LogError(filename too short) method is being called from LogAnalyzer.Analyze(filename)
    /// </summary>
    [Test]
by Cat   October 21, 2010 @ 7:17am
221 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate