|
|
Unit TestsIntroductionThis page will guide you through the SnCore unit testing.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(); } } } } } |
|
| © FoodCandy, 2006-2007, All Rights Reserved | FoodCandy | Sun Oct 7 10:48:50 2007 | Doxygen 1.4.6-NO | |