Umbraco CMS - 1 views
-
Assert.AreEqual(2, results.Count());
-
Michael Yagudaev on 30 Oct 11Testing parser returned expected number of matches
-
-
Assert.AreEqual(2, parameters.Count); Assert.AreEqual("asdfasdfasdf", parameters["blah"]); Assert.AreEqual("234234234", parameters["erwerwer"]);
-
Assert.AreEqual(1, parameters.Count); Assert.AreEqual("asdfee", parameters["test"]);
- ...1 more annotation...
-
Umbraco is an Open Source .NET based CMS. As always open source projects can teach us a lot about how things can be done properly (usually). Here I opened one of the unit test files just to show how they do unit testing in that project. This project uses a lot of the same technologies we use. Should be helpful. Play around with it, you might just learn something :).