Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 2 | 0.971 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 58 | src/NHibernate.Test/TypesTest/StringClobTypeFixture.cs |
2 | 18 | 17 | src/NHibernate.Test/TypesTest/StringTypeFixture.cs |
| ||||
[Test] public void InsertNullValue() { using (ISession s = OpenSession()) { StringClobClass b = new StringClobClass(); b.StringClob = null; s.Save(b); s.Flush(); } using (ISession s = OpenSession()) { StringClobClass b = (StringClobClass) s.CreateCriteria( typeof(StringClobClass)).UniqueResult(); Assert.IsNull(b.StringClob); s.Delete(b); s.Flush(); } } |
| ||||
[Test] public void InsertNullValue() { using (ISession s = OpenSession()) { StringClass b = new StringClass(); b.StringValue = null; s.Save(b); s.Flush(); } using (ISession s = OpenSession()) { StringClass b = (StringClass) s.CreateCriteria( typeof(StringClass)).UniqueResult(); Assert.IsNull(b.StringValue); s.Delete(b); s.Flush(); } } |
| |||
[Test] public void InsertNullValue() { using (ISession s = OpenSession()) { [[#variable56ab2780]]b = new [[#variable56ab2780]](); b. [[#variable56ab2fe0]]= null; s.Save(b); s.Flush(); } using (ISession s = OpenSession()) { [[#variable56ab2780]]b = ( [[#variable56ab2780]])s.CreateCriteria( typeof( [[#variable56ab2780]])).UniqueResult(); Assert.IsNull(b. [[#variable56ab2fe0]]); s.Delete(b); s.Flush(); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#56ab2780]] | StringClobClass |
1 | 2 | [[#56ab2780]] | StringClass |
2 | 1 | [[#56ab2fe0]] | StringClob |
2 | 2 | [[#56ab2fe0]] | StringValue |