unit testing - Is NUnit 3 removing the 'classic' syntax for tests? -


nunit has two styles of writing test.

classic style

assert.areequal(x, y); 

new style

assert.that(y, is.equalto(x); 

the release notes nunit 2.9.3 (scroll down!) says

support old style tests has been removed

do mean classic style removed?

it not removed in v3. looking @ latest alpha 2 can see methods are* still exist in assert object eg

public static void areequal(int expected, int actual) {     assert.that<int>(actual, is.equalto(expected), null, null); } 

old style tests prefixing of tests "test" (see launchpad)


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -