|
|
Writing Unit TestsIntroductionThis page will guide you through the SnCore unit testing. SnCore has almost 100% unit test coverage, which ensures stable product evolution.Prerequisites
Running Unit Tests
Writing Unit TestsSnCore unit tests live in the following assemblies:
using System; using NUnit.Framework; using SnCore.Data; using NHibernate; using SnCore.Data.Tests; using System.Collections; using NHibernate.Expression; namespace SnCore.Services.Tests { [TestFixture] public class ManagedMyClassTest : NHibernateTest { public ManagedMyClassTest() { } [Test] public void CreateMyClass() { MyClass class = new MyClass(Session); try { class.CreateOrUpdate(); } finally { if (class.Id > 0) { class.Delete(); } } } } } |
|
| © Vestris Inc., 2006-2007, All Rights Reserved | SnCore | Mon Mar 3 08:58:17 2008 | Doxygen 1.5.4 | |