MainComputersProgrammingComponent Frameworks › NSubstitute

NSubstitute

Edit Page
Report
Scan day: 03 March 2014 UTC
26
Virus safety - good
Description: A mocking library designed for Arrange-Act-Assert. Has the succinct syntax with less noise and fewer lambdas. [Open source]
NSubstitute: A friendly substitute for .NET mocking libraries A friendly substitute for .NET mocking frameworks Simple, succinct, pleasant to use //Create: var calculator = Substitute.For<ICalculator>(); //Set a return value: calculator.Add(1, 2).Returns(3); Assert.AreEqual(3, calculator.Add(1, 2)); //Check received calls: calculator.Received().Add(1, Arg.Any<int>()); calculator.DidNotReceive().Add(2, 2); //Raise events calculator.PoweringUp += Raise.Event();
Size: 491 chars

Contact Information

Email:
Phone&Fax:
Address:
Extended:

WEBSITE Info

Page title:NSubstitute: A friendly substitute for .NET mocking libraries
Keywords:
Description:
IP-address:185.31.16.133

WHOIS Info

NS
WHOIS
Status : Client Updt Lock
Date