Skip to main content

Home/ iQ Web Team/ Group items tagged nunit

Rss Feed Group items tagged

Michael Yagudaev

Umbraco CMS - 1 views

  • Assert.AreEqual(2, results.Count());
    • Michael Yagudaev
       
      Testing 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...
  • Assert.AreEqual(2, results.Count());
  •  
    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 :).
1 - 1 of 1
Showing 20 items per page