CloneSet230


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16250.971class_member_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11643
src/NHibernate.Test/UtilityTest/ReflectHelperFixture.cs
21661
src/NHibernate.Test/UtilityTest/ReflectHelperFixture.cs
Clone Instance
1
Line Count
16
Source Line
43
Source File
src/NHibernate.Test/UtilityTest/ReflectHelperFixture.cs

                [Test]
                public void OverridesEquals()
                {
                        Assert.IsFalse(ReflectHelper.OverridesEquals(this.GetType()), "ReflectHelperFixture does not override equals");
                        Assert.IsTrue(ReflectHelper.OverridesEquals( typeof(string)), "String does override equals");
                        Assert.IsFalse(ReflectHelper.OverridesEquals( typeof(IDisposable)), "IDisposable does not override equals");
                        Assert.IsTrue(ReflectHelper.OverridesEquals( typeof(BRhf)), "Base class overrides equals");
                        Assert.That( !ReflectHelper.OverridesEquals( typeof( object)), "System.Object does not override.");
                }

                [Test]
                public void InheritedInterfaceOverridesEquals()
                {
                        Assert.That(ReflectHelper.OverridesEquals( typeof(IMyBaseWithEqual)), "does override.");
                        Assert.That(ReflectHelper.OverridesEquals( typeof(IMyInheritedWithEqual)), "does override.");
                        Assert.That(ReflectHelper.OverridesEquals( typeof(IComplex)), "does override.");
                }



Clone Instance
2
Line Count
16
Source Line
61
Source File
src/NHibernate.Test/UtilityTest/ReflectHelperFixture.cs

                [Test]
                public void OverridesGetHashCode()
                {
                        Assert.IsFalse(ReflectHelper.OverridesGetHashCode(this.GetType()), "ReflectHelperFixture does not override GetHashCode");
                        Assert.IsTrue(ReflectHelper.OverridesGetHashCode( typeof(string)), "String does override equals");
                        Assert.IsFalse(ReflectHelper.OverridesGetHashCode( typeof(IDisposable)), "IDisposable does not override GetHashCode");
                        Assert.IsTrue(ReflectHelper.OverridesGetHashCode( typeof(BRhf)), "Base class overrides GetHashCode");
                        Assert.That( !ReflectHelper.OverridesGetHashCode( typeof(object)), "System.Object does not override.");
                }

                [Test]
                public void InheritedInterfaceOverridesGetHashCode()
                {
                        Assert.That(ReflectHelper.OverridesGetHashCode( typeof(IMyBaseWithEqual)), "does override.");
                        Assert.That(ReflectHelper.OverridesGetHashCode( typeof(IMyInheritedWithEqual)), "does override.");
                        Assert.That(ReflectHelper.OverridesGetHashCode( typeof(IComplex)), "does override.");
                }



Clone AbstractionParameter Count: 5Parameter Bindings

[Test]
public void [[#variable54ab3340]]()
{
   Assert.IsFalse(ReflectHelper. [[#variable54ab3340]](this.GetType()), [[#variable56af7f20]]);
   Assert.IsTrue(ReflectHelper. [[#variable54ab3340]]( typeof(string)), "String does override equals");
   Assert.IsFalse(ReflectHelper. [[#variable54ab3340]]( typeof(IDisposable)), [[#variable5507b180]]);
   Assert.IsTrue(ReflectHelper. [[#variable54ab3340]]( typeof(BRhf)), [[#variable5639d220]]);
   Assert.That( !ReflectHelper. [[#variable54ab3340]]( typeof(object)), "System.Object does not override.");
}

[Test]
public void [[#variable54ab31a0]]()
{
   Assert.That(ReflectHelper. [[#variable54ab3340]]( typeof(IMyBaseWithEqual)), "does override.");
   Assert.That(ReflectHelper. [[#variable54ab3340]]( typeof(IMyInheritedWithEqual)), "does override.");
   Assert.That(ReflectHelper. [[#variable54ab3340]]( typeof(IComplex)), "does override.");
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54ab3340]]
OverridesGetHashCode 
12[[#54ab3340]]
OverridesEquals 
21[[#56af7f20]]
"ReflectHelperFixture does not override GetHashCode" 
22[[#56af7f20]]
"ReflectHelperFixture does not override equals" 
31[[#5507b180]]
"IDisposable does not override GetHashCode" 
32[[#5507b180]]
"IDisposable does not override equals" 
41[[#5639d220]]
"Base class overrides GetHashCode" 
42[[#5639d220]]
"Base class overrides equals" 
51[[#54ab31a0]]
InheritedInterfaceOverridesGetHashCode 
52[[#54ab31a0]]
InheritedInterfaceOverridesEquals