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 Arrange Act Assert
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
127 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