CloneSet291


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15201.000statement_list[13]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116215
src/NHibernate.Test/Legacy/SQLFunctionsTest.cs
215382
src/NHibernate.Test/Legacy/SQLFunctionsTest.cs
Clone Instance
1
Line Count
16
Source Line
215
Source File
src/NHibernate.Test/Legacy/SQLFunctionsTest.cs

                        q.SetString("name", "Simple 1");
                        Assert.AreEqual(1, q.List().Count);

                        simple = (Simple) q.List()[0];

                        q.SetString("name", "Simple 2");
                        Assert.AreEqual(0, q.List().Count);
                        Assert.AreEqual(0, q.List().Count);
                        simple.Name = "Simple 2";
                        Assert.AreEqual(1, q.List().Count);
                        Assert.AreEqual(1, q.List().Count);
                        t.Commit();
                        s.Close();

                        s = OpenSession();
                        t = s.BeginTransaction();


Clone Instance
2
Line Count
15
Source Line
382
Source File
src/NHibernate.Test/Legacy/SQLFunctionsTest.cs

                        q.SetString("name", "Simple 1");
                        Assert.AreEqual(1, q.List().Count);
                        simple = (Simple) q.List()[0];

                        q.SetString("name", "Simple 2");
                        Assert.AreEqual(0, q.List().Count);
                        Assert.AreEqual(0, q.List().Count);
                        simple.Name = "Simple 2";
                        Assert.AreEqual(1, q.List().Count);
                        Assert.AreEqual(1, q.List().Count);
                        t.Commit();
                        s.Close();

                        s = OpenSession();
                        t = s.BeginTransaction();


Clone AbstractionParameter Count: 0Parameter Bindings

q.SetString("name", "Simple 1");
Assert.AreEqual(1, q.List().Count);
simple = (Simple)q.List()[0];
q.SetString("name", "Simple 2");
Assert.AreEqual(0, q.List().Count);
Assert.AreEqual(0, q.List().Count);
simple.Name = "Simple 2";
Assert.AreEqual(1, q.List().Count);
Assert.AreEqual(1, q.List().Count);
t.Commit();
s.Close();
s = OpenSession();
t = s.BeginTransaction();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None