| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 13 | 2 | 2 | 0.980 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 13 | 19 | src/NHibernate.Test/ReflectionOptimizerTest/LcgFixture.cs |
| 2 | 13 | 42 | src/NHibernate.Test/ReflectionOptimizerTest/LcgFixture.cs |
| ||||
[Test]
public void NoSetter()
{
IGetter[] getters = new IGetter[]
{
new BasicPropertyAccessor.BasicGetter( typeof( NoSetterClass), typeof( NoSetterClass).GetProperty("Property"), "Property")
} ;
ISetter[] setters = new ISetter[]
{
new BasicPropertyAccessor.BasicSetter( typeof( NoSetterClass), typeof( NoSetterClass).GetProperty("Property"), "Property")
} ;
Assert.Throws<PropertyNotFoundException> (() => new ReflectionOptimizer( typeof(NoSetterClass), getters, setters));
}
|
| ||||
[Test]
public void NoGetter()
{
IGetter[] getters = new IGetter[]
{
new BasicPropertyAccessor.BasicGetter( typeof( NoGetterClass), typeof( NoGetterClass).GetProperty("Property"), "Property")
} ;
ISetter[] setters = new ISetter[]
{
new BasicPropertyAccessor.BasicSetter( typeof( NoGetterClass), typeof( NoGetterClass).GetProperty("Property"), "Property")
} ;
Assert.Throws<PropertyNotFoundException> (() => new ReflectionOptimizer( typeof( NoGetterClass), getters, setters));
}
|
| |||
[Test]
public void [[#variable6fed72e0]]()
{
IGetter[] getters = new IGetter[]
{
new BasicPropertyAccessor.BasicGetter( typeof( [[#variable6fed7280]]), typeof( [[#variable6fed7280]]).GetProperty("Property"), "Property")
} ;
ISetter[] setters = new ISetter[]
{
new BasicPropertyAccessor.BasicSetter( typeof( [[#variable6fed7280]]), typeof( [[#variable6fed7280]]).GetProperty("Property"), "Property")
} ;
Assert.Throws<PropertyNotFoundException> (() => new ReflectionOptimizer( typeof( [[#variable6fed7280]]), getters, setters));
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#6fed72e0]] | NoSetter |
| 1 | 2 | [[#6fed72e0]] | NoGetter |
| 2 | 1 | [[#6fed7280]] | NoSetterClass |
| 2 | 2 | [[#6fed7280]] | NoGetterClass |