Clover.NET coverage report - Coverage for s2container.net

Coverage timestamp: 2006年5月30日 11:21:29

File Stats: LOC: 56   Methods: 5
NCLOC: 47 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Seasar.Tests.Extension.Tx\Impl\NotSupportedInterceptorTest.cs - 100.0% 100.0% 100.0%
coverage
1   using System;
2   using System.Data;
3   using System.IO;
4   using System.Reflection;
5   using System.Transactions;
6  
7   using log4net;
8   using log4net.Config;
9   using log4net.Util;
10  
11   using NUnit.Framework;
12  
13   using Seasar.Framework.Container.Factory;
14   using Seasar.Framework.Unit;
15  
16   namespace Seasar.Tests.Extension.Tx.Impl
17   {
18   [TestFixture]
19   public class NotSupportedInterceptorTest : S2FrameworkTestCaseBase
20   {
21   private ITxTest txTest;
22  
23   public ITxTest TxTest
24   {
25 2 get { return txTest; }
26 1 set { txTest = value; }
27   }
28  
29 1 public NotSupportedInterceptorTest()
30   {
31 1 FileInfo info = new FileInfo(SystemInfo.AssemblyFileName(
32   Assembly.GetExecutingAssembly()) + ".config");
33 1 XmlConfigurator.Configure(LogManager.GetRepository(), info);
34 1 base.Container = S2ContainerFactory.Create(base.ConvertPath("NotSupportedInterceptorTest.dicon"));
35 1 base.Container.Init();
36 1 this.TxTest = base.GetComponent(typeof(ITxTest)) as ITxTest;
37   }
38  
39 1 [Test]
40   public void StartTx()
41   {
42 1 Assert.AreEqual(false, this.TxTest.IsInTransaction());
43   }
44  
45 1 [Test]
46   public void StartTxInTx()
47   {
48 1 using (TransactionScope scope = new TransactionScope())
49   {
50 1 Transaction tx = Transaction.Current;
51 1 Assert.IsNull(TxTest.TxId);
52   }
53   }
54   }
55   }
56