CloneSet51


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6660.962class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1610
src/NHibernate.Test/EngineTest/NativeSQLQuerySpecificationTest.cs
2618
src/NHibernate.Test/EngineTest/NativeSQLQuerySpecificationTest.cs
3626
src/NHibernate.Test/EngineTest/NativeSQLQuerySpecificationTest.cs
4634
src/NHibernate.Test/EngineTest/NativeSQLQuerySpecificationTest.cs
5642
src/NHibernate.Test/EngineTest/NativeSQLQuerySpecificationTest.cs
6650
src/NHibernate.Test/EngineTest/NativeSQLQuerySpecificationTest.cs
Clone Instance
1
Line Count
6
Source Line
10
Source File
src/NHibernate.Test/EngineTest/NativeSQLQuerySpecificationTest.cs

                [Test]
                public void Equality()
                {
                        var sr1 = new NativeSQLQuerySpecification("SELECT * FROM SOMETHING", new INativeSQLQueryReturn[] { new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32), new NativeSQLQueryScalarReturn("otherAlias", NHibernateUtil.Int32)
                                                                                                                         } ,                                                                                                                                      new List<string> { "SOMETHING" } );
                        var sr2 = new NativeSQLQuerySpecification("SELECT * FROM SOMETHING", new INativeSQLQueryReturn[] { new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32), new NativeSQLQueryScalarReturn("otherAlias", NHibernateUtil.Int32)
                                                                                                                         } ,                                                                                                                                      new List<string> { "SOMETHING" } );
                        Assert.AreEqual(sr1, sr2);
                }



Clone Instance
2
Line Count
6
Source Line
18
Source File
src/NHibernate.Test/EngineTest/NativeSQLQuerySpecificationTest.cs

                [Test]
                public void HashCode()
                {
                        var sr1 = new NativeSQLQuerySpecification("SELECT * FROM SOMETHING", new INativeSQLQueryReturn[] { new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32), new NativeSQLQueryScalarReturn("otherAlias", NHibernateUtil.Int32)
                                                                                                                         } ,                                                                                                                                      new List<string> { "SOMETHING" } );
                        var sr2 = new NativeSQLQuerySpecification("SELECT * FROM SOMETHING", new INativeSQLQueryReturn[] { new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32), new NativeSQLQueryScalarReturn("otherAlias", NHibernateUtil.Int32)
                                                                                                                         } ,                                                                                                                                      new List<string> { "SOMETHING" } );
                        Assert.AreEqual(sr1.GetHashCode(), sr2.GetHashCode());
                }



Clone Instance
3
Line Count
6
Source Line
26
Source File
src/NHibernate.Test/EngineTest/NativeSQLQuerySpecificationTest.cs

                [Test]
                public void WhenChangeReturns_NotEqual()
                {
                        var sr1 = new NativeSQLQuerySpecification("SELECT * FROM SOMETHING", new INativeSQLQueryReturn[] { new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32), new NativeSQLQueryScalarReturn("otherAlias", NHibernateUtil.Int32)
                                                                                                                         } ,                                                                                                                                      new List<string> { "SOMETHING" } );
                        var sr2 = new NativeSQLQuerySpecification("SELECT * FROM SOMETHING", new INativeSQLQueryReturn[] { new NativeSQLQueryScalarReturn("myAliasChanged", NHibernateUtil.Int32), new NativeSQLQueryScalarReturn("otherAlias", NHibernateUtil.Int32)
                                                                                                                         } ,                                                                                                                                             new List<string> { "SOMETHING" } );
                        Assert.AreNotEqual(sr1, sr2);
                }



Clone Instance
4
Line Count
6
Source Line
34
Source File
src/NHibernate.Test/EngineTest/NativeSQLQuerySpecificationTest.cs

                [Test]
                public void WhenChangeReturns_NotEqualHashCode()
                {
                        var sr1 = new NativeSQLQuerySpecification("SELECT * FROM SOMETHING", new INativeSQLQueryReturn[] { new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32), new NativeSQLQueryScalarReturn("otherAlias", NHibernateUtil.Int32)
                                                                                                                         } ,                                                                                                                                      new List<string> { "SOMETHING" } );
                        var sr2 = new NativeSQLQuerySpecification("SELECT * FROM SOMETHING", new INativeSQLQueryReturn[] { new NativeSQLQueryScalarReturn("myAliasChanged", NHibernateUtil.Int32), new NativeSQLQueryScalarReturn("otherAlias", NHibernateUtil.Int32)
                                                                                                                         } ,                                                                                                                                             new List<string> { "SOMETHING" } );
                        Assert.AreNotEqual(sr1.GetHashCode(), sr2.GetHashCode());
                }



Clone Instance
5
Line Count
6
Source Line
42
Source File
src/NHibernate.Test/EngineTest/NativeSQLQuerySpecificationTest.cs

                [Test]
                public void WhenChangeSpace_NotEqual()
                {
                        var sr1 = new NativeSQLQuerySpecification("SELECT * FROM SOMETHING", new INativeSQLQueryReturn[] { new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32), new NativeSQLQueryScalarReturn("otherAlias", NHibernateUtil.Int32)
                                                                                                                         } ,                                                                                                                                      new List<string> { "SOMETHING" } );
                        var sr2 = new NativeSQLQuerySpecification("SELECT * FROM SOMETHING", new INativeSQLQueryReturn[] { new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32), new NativeSQLQueryScalarReturn("otherAlias", NHibernateUtil.Int32)
                                                                                                                         } ,                                                                                                                                      new List<string> { "ANOTHER" } );
                        Assert.AreNotEqual(sr1, sr2);
                }



Clone Instance
6
Line Count
6
Source Line
50
Source File
src/NHibernate.Test/EngineTest/NativeSQLQuerySpecificationTest.cs

                [Test]
                public void WhenChangeSpace_NotEqualHashCode()
                {
                        var sr1 = new NativeSQLQuerySpecification("SELECT * FROM SOMETHING", new INativeSQLQueryReturn[] { new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32), new NativeSQLQueryScalarReturn("otherAlias", NHibernateUtil.Int32)
                                                                                                                         } ,                                                                                                                                      new List<string> { "SOMETHING" } );
                        var sr2 = new NativeSQLQuerySpecification("SELECT * FROM SOMETHING", new INativeSQLQueryReturn[] { new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32), new NativeSQLQueryScalarReturn("otherAlias", NHibernateUtil.Int32)
                                                                                                                         } ,                                                                                                                                      new List<string> { "ANOTHER" } );
                        Assert.AreNotEqual(sr1.GetHashCode(), sr2.GetHashCode());
                }



Clone AbstractionParameter Count: 6Parameter Bindings

[Test]
public void [[#variable7003edc0]]()
{
   var sr1 = new NativeSQLQuerySpecification("SELECT * FROM SOMETHING", new INativeSQLQueryReturn[]
                                                                        {
                                                                           new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32), new NativeSQLQueryScalarReturn("otherAlias", NHibernateUtil.Int32)
                                                                        } , new List<string> { "SOMETHING" } );
   var sr2 = new NativeSQLQuerySpecification("SELECT * FROM SOMETHING", new INativeSQLQueryReturn[]
                                                                        {
                                                                           new NativeSQLQueryScalarReturn( [[#variable7003ed40]], NHibernateUtil.Int32), new NativeSQLQueryScalarReturn("otherAlias", NHibernateUtil.Int32)
                                                                        } , new List<string> { [[#variable7003ece0]]} );
   Assert. [[#variable7003ec60]]( [[#variable7003eba0]], [[#variable7003eaa0]]);
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#7003edc0]]
Equality 
12[[#7003edc0]]
WhenChangeReturns_NotEqual 
13[[#7003edc0]]
WhenChangeSpace_NotEqual 
14[[#7003edc0]]
HashCode 
15[[#7003edc0]]
WhenChangeReturns_NotEqualHashCode 
16[[#7003edc0]]
WhenChangeSpace_NotEqualHashCode 
21[[#7003ed40]]
"myAlias" 
22[[#7003ed40]]
"myAliasChanged" 
23[[#7003ed40]]
"myAlias" 
24[[#7003ed40]]
"myAlias" 
25[[#7003ed40]]
"myAliasChanged" 
26[[#7003ed40]]
"myAlias" 
31[[#7003ece0]]
"SOMETHING" 
32[[#7003ece0]]
"SOMETHING" 
33[[#7003ece0]]
"ANOTHER" 
34[[#7003ece0]]
"SOMETHING" 
35[[#7003ece0]]
"SOMETHING" 
36[[#7003ece0]]
"ANOTHER" 
41[[#7003ec60]]
AreEqual 
42[[#7003ec60]]
AreNotEqual 
43[[#7003ec60]]
AreNotEqual 
44[[#7003ec60]]
AreEqual 
45[[#7003ec60]]
AreNotEqual 
46[[#7003ec60]]
AreNotEqual 
51[[#7003eba0]]
sr1 
52[[#7003eba0]]
sr1 
53[[#7003eba0]]
sr1 
54[[#7003eba0]]
sr1.GetHashCode() 
55[[#7003eba0]]
sr1.GetHashCode() 
56[[#7003eba0]]
sr1.GetHashCode() 
61[[#7003eaa0]]
sr2 
62[[#7003eaa0]]
sr2 
63[[#7003eaa0]]
sr2 
64[[#7003eaa0]]
sr2.GetHashCode() 
65[[#7003eaa0]]
sr2.GetHashCode() 
66[[#7003eaa0]]
sr2.GetHashCode()