Skip to content

Redwoodcutter/FirstUnitTestCSharp

Repository files navigation

FirstUnitTestC#

Nunit Assertion Model

Classic Model

-Assert.AreEqueal(30, result); -Assert.IsTrue(result);

Constrait Model ( Assert.That )

The constraint-based assert model uses a single method of the assert class for all assertions. The logic necessary to carry out each assertion is embedded in the constraint object passed as the second parameter to that method. -Assert.That(30, IsEqual(result)); -Assert.That(Result, IsFalse);

Mocking Overview

An onject under test may have dependencies on other objects. Mocking is replacing the actual dependency, with a test time only version that enables easier isolation of code that we want to test. Like MOQ, Nmock3, FakeITEasy, Nsubstitute

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published