Clover.NET coverage report - Coverage for s2container.net

Coverage timestamp: 2006年5月18日 12:46:23

File Stats: LOC: 99   Methods: 13
NCLOC: 69 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Seasar.Tests.Extension.Unit\Employee.cs 0.0% 34.8% 69.2% 44.7%
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.Text;
21  
22   namespace Seasar.Tests.Extension.Unit
23   {
24   [Serializable]
25   public class Employee
26   {
27   private long empno;
28  
29   private string ename;
30  
31   private int deptno;
32  
33   private string dname;
34  
35 2 public Employee()
36   {
37   }
38  
39 0 public Employee(
40   long empno,
41   string ename,
42   int deptno,
43   string dname
44   )
45   {
46   this.empno = empno;
47   this.ename = ename;
48   this.deptno = deptno;
49   this.dname = dname;
50   }
51  
52   public long Empno
53   {
54 2 set { empno = value; }
55 2 get { return empno; }
56   }
57  
58   public string Ename
59   {
60 2 set { ename = value; }
61 2 get { return ename; }
62   }
63  
64   public int Deptno
65   {
66 2 set { deptno = value; }
67 2 get { return deptno; }
68   }
69  
70   public string Dname
71   {
72 2 set { dname = value; }
73 2 get { return dname; }
74   }
75  
76 0 public override bool Equals(object other)
77   {
78   if (!(other is Employee)) { return false; }
79   Employee castOther = (Employee) other;
80   return this.Empno == castOther.Empno;
81   }
82  
83 0 public override int GetHashCode()
84   {
85   return (int) this.Empno;
86   }
87  
88 0 public override string ToString()
89   {
90   StringBuilder buf = new StringBuilder();
91   buf.Append(empno).Append(", ");
92   buf.Append(ename).Append(", ");
93   buf.Append(deptno).Append(", ");
94   buf.Append(dname);
95   return buf.ToString();
96   }
97   }
98   }
99