CloneSet513


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9340.972class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1941
src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs
2956
src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs
3967
src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs
Clone Instance
1
Line Count
9
Source Line
41
Source File
src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs

                [Test]
                public void EqualsTrue()
                {
                        IType type = NHibernateUtil.Enum( typeof(A));

                        A lhs = A.One;
                        A rhs = A.One;

                        Assert.IsTrue(type.IsEqual(lhs, rhs, EntityMode.Poco));
                }



Clone Instance
2
Line Count
9
Source Line
56
Source File
src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs

                /// <summary>
                /// Verify that even if the Enum have the same underlying value but they
                /// are different Enums that they are not considered Equal.
                /// </summary>
                [Test]
                public void EqualsFalseSameUnderlyingValue()
                {
                        IType type = NHibernateUtil.Enum( typeof(A));

                        A lhs = A.One;
                        B rhs = B.One;

                        Assert.IsFalse(type.IsEqual(lhs, rhs, EntityMode.Poco));
                }



Clone Instance
3
Line Count
9
Source Line
67
Source File
src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs

                [Test]
                public void EqualsFalse()
                {
                        IType type = NHibernateUtil.Enum( typeof(A));

                        A lhs = A.One;
                        A rhs = A.Two;

                        Assert.IsFalse(type.IsEqual(lhs, rhs, EntityMode.Poco));
                }



Clone AbstractionParameter Count: 4Parameter Bindings

/// <summary>
/// Verify that even if the Enum have the same underlying value but they
/// are different Enums that they are not considered Equal.
/// </summary>
[Test]
public void [[#variable29835480]]()
{
   IType type = NHibernateUtil.Enum( typeof(A));
   A lhs = A.One;
    [[#variable29835420]]rhs = [[#variable29835420]]. [[#variable29835380]];
   Assert. [[#variable298352c0]](type.IsEqual(lhs, rhs, EntityMode.Poco));
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#29835480]]
EqualsTrue 
12[[#29835480]]
EqualsFalseSameUnderlyingValue 
13[[#29835480]]
EqualsFalse 
21[[#29835420]]
A 
22[[#29835420]]
B 
23[[#29835420]]
A 
31[[#29835380]]
One 
32[[#29835380]]
One 
33[[#29835380]]
Two 
41[[#298352c0]]
IsTrue 
42[[#298352c0]]
IsFalse 
43[[#298352c0]]
IsFalse