NUnit

NUnit
NUnit
NUnit GUI.png
Графическая среда NUnit 2.4.6 под Windows
Тип

Система автоматизированного тестирования

Разработчик

Чарли Пул и другие

Написана на

C#

Операционная система

Все, поддерживаемые Microsoft .NET или Mono

Последняя версия

2.6.0 (2 февраля 2012[1])

Лицензия

zlib

Сайт

http://nunit.org

NUnit — открытая среда юнит-тестирования приложений для .NET. Она была портирована с языка Java (библиотека JUnit). Первые версии NUnit были написаны на J#, но затем весь код был переписан на C# с использованием таких новшеств .NET, как атрибуты.

Существуют также известные расширения оригинального пакета NUnit, большая часть из них также с открытым исходным кодом. NUnit.Forms дополняет NUnit средствами тестирования элементов пользовательского интерфейса Windows Forms. NUnit.ASP выполняет ту же задачу для элементов интерфейса в ASP.NET.

Содержание

Примечания

Пример

Пример теста NUnit:

using NUnit.Framework;
 
[TestFixture]
public class ExampleTestOfNUnit
{
    [Test]
    public void TestMultiplication()
    {
        Assert.AreEqual(4, 2 * 2, "Умножение");
    }
}

NUnit автоматически находит метод ExampleTestOfNUnit.TestMultiplication() с помощью отражения.

Литература

  • Эндрю Хант, Дэвид Томас: Pragmatic Unit Testing in C# with NUnit (Прагматичное тестирование на C# с помощью NUnit). The Pragmatic Bookshelf, Raleigh 2004, ISBN 0-9745140-2-0
  • Джим Ньюкирк, Алексей Воронцов: Test-Driven Development in Microsoft .NET. (Разработка через тестирование — с Microsoft.NET). Microsoft Press, Redmond 2004, ISBN 0-7356-1948-4
  • Билл Хамильтон: NUnit Pocket Reference (Карманный справочник по NUnit). O'Reilly, Cambridge 2004, ISBN 0-596-00739-6
  • Кристиан Нейгел, Билл Ивьен, Джей Глинн, Карли Уотсон, Морган Скиннер C# 2005 и платформа .NET 3.0 для профессионалов = Professional C# 2005 with .NET 3.0. — М.: «Диалектика», 2007. — ISBN 978-5-8459-1317-3

См. также

Ссылки



Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Полезное


Смотреть что такое "NUnit" в других словарях:

  • 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 — 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… …   Wikipedia Español

  • 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


Поделиться ссылкой на выделенное

Прямая ссылка:
Нажмите правой клавишей мыши и выберите «Копировать ссылку»