Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 4 | 0.965 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 119 | src/NHibernate.Test/Legacy/CriteriaTest.cs |
2 | 8 | 145 | src/NHibernate.Test/Legacy/CriteriaTest.cs |
| ||||
[Test] public void CriteriaTypeMismatch() { using (ISession s = OpenSession()) { Assert.Throws<QueryException> (() => s.CreateCriteria( typeof(Master)). Add (Expression.Like("Details", "SomeString")). List ()); } } |
| ||||
[Test] public void CriteriaCompositeProperty() { using (ISession s = OpenSession()) { Assert.Throws<QueryException> (() => s.CreateCriteria( typeof(Master)). Add (Expression.Eq("Details.I", 10)). List ()); } } |
| |||
[Test] public void [[#variable27b10140]]() { using (ISession s = OpenSession()) { Assert.Throws<QueryException> (() => s.CreateCriteria( typeof(Master)).Add(Expression. [[#variable27b100c0]]( [[#variable27b10060]], [[#variable2901bf60]])).List()); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#27b10140]] | CriteriaTypeMismatch |
1 | 2 | [[#27b10140]] | CriteriaCompositeProperty |
2 | 1 | [[#27b100c0]] | Like |
2 | 2 | [[#27b100c0]] | Eq |
3 | 1 | [[#27b10060]] | "Details" |
3 | 2 | [[#27b10060]] | "Details.I" |
4 | 1 | [[#2901bf60]] | "SomeString" |
4 | 2 | [[#2901bf60]] | 10 |