Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 5 | 0.971 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 43 | src/NHibernate.Test/UtilityTest/ReflectHelperFixture.cs |
2 | 16 | 61 | 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."); } |
| ||||
[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."); } |
| |||
[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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54ab3340]] | OverridesGetHashCode |
1 | 2 | [[#54ab3340]] | OverridesEquals |
2 | 1 | [[#56af7f20]] | "ReflectHelperFixture does not override GetHashCode" |
2 | 2 | [[#56af7f20]] | "ReflectHelperFixture does not override equals" |
3 | 1 | [[#5507b180]] | "IDisposable does not override GetHashCode" |
3 | 2 | [[#5507b180]] | "IDisposable does not override equals" |
4 | 1 | [[#5639d220]] | "Base class overrides GetHashCode" |
4 | 2 | [[#5639d220]] | "Base class overrides equals" |
5 | 1 | [[#54ab31a0]] | InheritedInterfaceOverridesGetHashCode |
5 | 2 | [[#54ab31a0]] | InheritedInterfaceOverridesEquals |