NUnit

NUnit

NUnit es un framework open source de Pruebas de unidad para Microsoft .NET y Mono. Sirve al mismo propósito que JUnit realiza en el mundo Java, y es uno de muchos en la familia xUnit.

NUnit.Forms es una expansión al framework núcleo NUnit y es también open source. Esto busca concretamente ampliar NUnit para que sea capaz de manejar pruebas de elementos de interfaz de usuario en Windows Forms.

NUnit. ASP es una expansión al framework núcleo NUnit y es también open source. Esto busca concretamente ampliar NUnit para que sea capaz de manejar pruebas de elementos de interfaz de usuario en ASP.NET.

Ejemplo de una prueba NUnit:

using NUnit.Framework;

[TestFixture]
public class EjemplodeWikipediadeNUnit
{
  [Test]
  public void TestMultiplication()
  {
    Assert.AreEqual(4, 2*2, "Multiplication");
  }
}

TestFixture hace referencia a Accesorio de Prueba o Contexto de Prueba

El framework NUnit descubre el método TestWikipediaExampleOfNUnit.TestMultiplication() automáticamente por Reflexión (programación).

Literatura

  • Andrew Hunt, David Thomas: Pragmatic Unit Testing in C# with NUnit The Pragmatic Bookshelf, Raleigh 2004, ISBN 0-9745140-2-0
  • Jim Newkirk, Alexei Vorontsov: Test-Driven Development in Microsoft .NET. Microsoft Press, Redmond 2004, ISBN 0-7356-1948-4
  • Bill Hamilton: NUnit Pocket Reference. O'Reilly, Cambridge 2004, ISBN 0-596-00739-6

Enlaces externos


Wikimedia foundation. 2010.

Игры ⚽ Нужна курсовая?

Mira otros diccionarios:

  • NUnit — 2.4.6 GUI on Windows Stable release 2.5.10 / April 2, 2011; 7 months ago (2011 04 02) Written in …   Wikipedia

  • NUnit — Графическая среда NUnit 2.4.6 под Windows Тип Система автоматизированного тестирования …   Википедия

  • NUnit — Aktuelle Version 2.5.10.11092 (2. April 2011) Programmier­sprache .NET Lizenz zlib Lizenz …   Deutsch Wikipedia

  • Nunit — …   Википедия

  • Fortran language features — This is a comprehensive overview of features of the Fortran 95 language, the version supported by almost all existing Fortran compilers. Old features that have been superseded by new ones are not described few of those historic features are used… …   Wikipedia

  • NUnitAsp — is a tool for automatically testing ASP.NET web pages. It s an extension to NUnit, a tool for test driven development in .NET. Contents 1 How It Works 2 Credits History 3 See also 4 External links …   Wikipedia

  • Test-driven development — (TDD ) is a software development technique consisting of short iterations where new test cases covering the desired improvement or new functionality are written first, then the production code necessary to pass the tests is implemented, and… …   Wikipedia

  • ThoughtWorks — Infobox Company company name = ThoughtWorks Inc. company type = Private foundation = 1993 company key people = Neville Roy Singham, Chairman Trevor Mather, CEO Graham Webster, CFO Martin Fowler, Chief Scientist industry = IT Consulting Management …   Wikipedia

  • Dave Thomas (programmer) — This page is about Dave (David) Thomas, the computer programmer and author/editor, and not about Dave Thomas, founder of IBM OTI Labs. For other people named Dave or David Thomas, see David Thomas. Dave Thomas speaking at the Pasadena Rails… …   Wikipedia

  • Andy Hunt (author) — Andy Hunt (sometimes credited as Andrew Hunt) is a writer of books on software development. Hunt co authored The Pragmatic Programmer , six other books and many articles,and was one of the 17 original authors of the Agile Manifesto and founders… …   Wikipedia

Compartir el artículo y extractos

Link directo
Do a right-click on the link above
and select “Copy Link”