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 NUnit
XML
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>Nunit Test Class</Title>
      <Shortcut>ntestc</Shortcut>
      <Description>Code snippet for a nunit test class</Description>
      <Author>Jason Rowe</Author>
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
by Jason Rowe   December 17, 2010 @ 3:41pm
231 Views
no comments
 
XML
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
      <Title>Test Method</Title>
      <Shortcut>ntestm</Shortcut>
      <Description>Code snippet for a test method</Description>
by Jason Rowe   December 17, 2010 @ 3:39pm
241 Views
no comments
 
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#
namespace NUnit.Framework
{
    public static class AssertionHelpers
    {
        public static void WithMessage(this Exception ex,string expectedMessage)
        {
            Assert.AreEqual(ex.Message, expectedMessage);           
        }
    }
}
by DrRandom   December 29, 2009 @ 12:09pm
447 Views
no comments
 
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
 
namespace NUnitTests
{
 
    class GerenteProdutos
by Higor   September 28, 2009 @ 6:44pm
585 Views
no comments
 
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
namespace NUnitTests
{
 
    class ProductManager
    {
by Higor   September 28, 2009 @ 5:50pm
412 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