CloneSet421


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13220.980class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11319
src/NHibernate.Test/ReflectionOptimizerTest/LcgFixture.cs
21342
src/NHibernate.Test/ReflectionOptimizerTest/LcgFixture.cs
Clone Instance
1
Line Count
13
Source Line
19
Source File
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));
                }



Clone Instance
2
Line Count
13
Source Line
42
Source File
src/NHibernate.Test/ReflectionOptimizerTest/LcgFixture.cs

                [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));
                }



Clone AbstractionParameter Count: 2Parameter Bindings

[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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6fed72e0]]
NoSetter 
12[[#6fed72e0]]
NoGetter 
21[[#6fed7280]]
NoSetterClass 
22[[#6fed7280]]
NoGetterClass