Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 3 | 4 | 0.972 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 41 | src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs |
2 | 9 | 56 | src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs |
3 | 9 | 67 | 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)); } |
| ||||
/// <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)); } |
| ||||
[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)); } |
| |||
/// <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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#29835480]] | EqualsTrue |
1 | 2 | [[#29835480]] | EqualsFalseSameUnderlyingValue |
1 | 3 | [[#29835480]] | EqualsFalse |
2 | 1 | [[#29835420]] | A |
2 | 2 | [[#29835420]] | B |
2 | 3 | [[#29835420]] | A |
3 | 1 | [[#29835380]] | One |
3 | 2 | [[#29835380]] | One |
3 | 3 | [[#29835380]] | Two |
4 | 1 | [[#298352c0]] | IsTrue |
4 | 2 | [[#298352c0]] | IsFalse |
4 | 3 | [[#298352c0]] | IsFalse |