Format:
Recent snippets matching tags of Record Replay
/// <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);
221 Views
no comments
/// <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>();
128 Views
no comments
[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]
221 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
