Clover.NET coverage report - Coverage for s2container.net

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

File Stats: LOC: 70   Methods: 3
NCLOC: 44 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Seasar.Tests.Extension.Tx\RequiresNewInterceptorTest.cs - 25.0% 33.3% 27.3%
coverage coverage
1   #region Copyright
2   /*
3   * Copyright 2005 the Seasar Foundation and the Others.
4   *
5   * Licensed under the Apache License, Version 2.0 (the "License");
6   * you may not use this file except in compliance with the License.
7   * You may obtain a copy of the License at
8   *
9   * http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14   * either express or implied. See the License for the specific language
15   * governing permissions and limitations under the License.
16   */
17   #endregion
18  
19   using System;
20   using System.IO;
21   using System.EnterpriseServices;
22   using System.Reflection;
23  
24   using Seasar.Framework.Container;
25   using Seasar.Framework.Container.Factory;
26  
27   using log4net;
28   using log4net.Config;
29   using log4net.Util;
30  
31   using NUnit.Framework;
32  
33   namespace Seasar.Tests.Extension.Tx
34   {
35   /// <summary>
36   /// RequiresNewInterceptorTest の概要の説明です。
37   /// </summary>
38   [TestFixture]
39   [Transaction(TransactionOption.RequiresNew)]
40   public class DTCRequiresNewInterceptorTest : ServicedComponent
41   {
42   private const string path = "Seasar/Tests/Extension/Tx/DTCRequiresNewInterceptorTest.dicon";
43 1 static DTCRequiresNewInterceptorTest()
44   {
45 1 FileInfo info = new FileInfo(SystemInfo.AssemblyFileName(
46   Assembly.GetExecutingAssembly()) + ".config");
47 1 XmlConfigurator.Configure(LogManager.GetRepository(), info);
48   }
49  
50   private IS2Container container = null;
51   private TxTest tester = null;
52 0 [SetUp]
53   public void SetUp()
54   {
55   container = S2ContainerFactory.Create(path);
56   container.Init();
57   tester = container.GetComponent(typeof(TxTest)) as TxTest;
58   }
59  
60 0 [Test]
61   [AutoComplete]
62   public void TestProceed()
63   {
64   Guid txid = ContextUtil.TransactionId;
65   Assert.IsFalse(txid.Equals(tester.GetTransactionId()));
66   Assert.IsTrue(tester.IsInTransaction());
67   }
68   }
69   }
70