CloneSet109


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9460.965block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1919
src/NHibernate.Test/PropertyTest/FieldGetterFixture.cs
2932
src/NHibernate.Test/PropertyTest/FieldGetterFixture.cs
3945
src/NHibernate.Test/PropertyTest/FieldGetterFixture.cs
4958
src/NHibernate.Test/PropertyTest/FieldGetterFixture.cs
Clone Instance
1
Line Count
9
Source Line
19
Source File
src/NHibernate.Test/PropertyTest/FieldGetterFixture.cs

                {
                        IGetter fieldGetter = ReflectHelper.GetGetter( typeof(FieldGetterClass), "Id", "field");

                        Assert.IsNotNull(fieldGetter, "should have found getter");
                        Assert.AreEqual( typeof(FieldAccessor.FieldGetter), fieldGetter.GetType(), "IGetter should be for a field.");
                        Assert.AreEqual( typeof(Int32), fieldGetter.ReturnType, "returns Int32.");
                        Assert.IsNull(fieldGetter.Method, "no MethodInfo for fields.");
                        Assert.IsNull(fieldGetter.PropertyName, "no Property Names for fields.");
                        Assert.AreEqual(7, fieldGetter.Get(obj), "Get() for Int32");
                }


Clone Instance
2
Line Count
9
Source Line
32
Source File
src/NHibernate.Test/PropertyTest/FieldGetterFixture.cs

                {
                        IGetter fieldGetter = ReflectHelper.GetGetter( typeof(FieldGetterClass), "PropertyOne", "field.camelcase");

                        Assert.IsNotNull(fieldGetter, "should have found getter");
                        Assert.AreEqual( typeof(FieldAccessor.FieldGetter), fieldGetter.GetType(), "IGetter should be for a field.");
                        Assert.AreEqual( typeof(DateTime), fieldGetter.ReturnType, "returns DateTime.");
                        Assert.IsNull(fieldGetter.Method, "no MethodInfo for fields.");
                        Assert.IsNull(fieldGetter.PropertyName, "no Property Names for fields.");
                        Assert.AreEqual(DateTime.Parse("2000-01-01"), fieldGetter.Get(obj), "Get() for DateTime");
                }


Clone Instance
3
Line Count
9
Source Line
45
Source File
src/NHibernate.Test/PropertyTest/FieldGetterFixture.cs

                {
                        IGetter fieldGetter = ReflectHelper.GetGetter( typeof(FieldGetterClass), "PropertyTwo", "field.camelcase-underscore");

                        Assert.IsNotNull(fieldGetter, "should have found getter");
                        Assert.AreEqual( typeof(FieldAccessor.FieldGetter), fieldGetter.GetType(), "IGetter should be for a field.");
                        Assert.AreEqual( typeof(Boolean), fieldGetter.ReturnType, "returns Boolean.");
                        Assert.IsNull(fieldGetter.Method, "no MethodInfo for fields.");
                        Assert.IsNull(fieldGetter.PropertyName, "no Property Names for fields.");
                        Assert.AreEqual(true, fieldGetter.Get(obj), "Get() for Boolean");
                }


Clone Instance
4
Line Count
9
Source Line
58
Source File
src/NHibernate.Test/PropertyTest/FieldGetterFixture.cs

                {
                        IGetter fieldGetter = ReflectHelper.GetGetter( typeof(FieldGetterClass), "PropertyFour", "field.lowercase-underscore");

                        Assert.IsNotNull(fieldGetter, "should have found getter");
                        Assert.AreEqual( typeof(FieldAccessor.FieldGetter), fieldGetter.GetType(), "IGetter should be for a field.");
                        Assert.AreEqual( typeof(Int64), fieldGetter.ReturnType, "returns Int64.");
                        Assert.IsNull(fieldGetter.Method, "no MethodInfo for fields.");
                        Assert.IsNull(fieldGetter.PropertyName, "no Property Names for fields.");
                        Assert.AreEqual(Int64.MaxValue, fieldGetter.Get(obj), "Get() for Int64");
                }


Clone AbstractionParameter Count: 6Parameter Bindings

{
   IGetter fieldGetter = ReflectHelper.GetGetter( typeof(FieldGetterClass), [[#variable6e70b5c0]], [[#variable6e70b520]]);
   Assert.IsNotNull(fieldGetter, "should have found getter");
   Assert.AreEqual( typeof(FieldAccessor.FieldGetter), fieldGetter.GetType(), "IGetter should be for a field.");
   Assert.AreEqual( typeof( [[#variable6e70b460]]), fieldGetter.ReturnType, [[#variable6e70b3c0]]);
   Assert.IsNull(fieldGetter.Method, "no MethodInfo for fields.");
   Assert.IsNull(fieldGetter.PropertyName, "no Property Names for fields.");
   Assert.AreEqual( [[#variable6e70b320]], fieldGetter.Get(obj), [[#variable6e70b2a0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6e70b5c0]]
"Id" 
12[[#6e70b5c0]]
"PropertyOne" 
13[[#6e70b5c0]]
"PropertyTwo" 
14[[#6e70b5c0]]
"PropertyFour" 
21[[#6e70b520]]
"field" 
22[[#6e70b520]]
"field.camelcase" 
23[[#6e70b520]]
"field.camelcase-underscore" 
24[[#6e70b520]]
"field.lowercase-underscore" 
31[[#6e70b460]]
Int32 
32[[#6e70b460]]
DateTime 
33[[#6e70b460]]
Boolean 
34[[#6e70b460]]
Int64 
41[[#6e70b3c0]]
"returns Int32." 
42[[#6e70b3c0]]
"returns DateTime." 
43[[#6e70b3c0]]
"returns Boolean." 
44[[#6e70b3c0]]
"returns Int64." 
51[[#6e70b320]]
7 
52[[#6e70b320]]
DateTime.Parse("2000-01-01") 
53[[#6e70b320]]
true 
54[[#6e70b320]]
Int64.MaxValue 
61[[#6e70b2a0]]
"Get() for Int32" 
62[[#6e70b2a0]]
"Get() for DateTime" 
63[[#6e70b2a0]]
"Get() for Boolean" 
64[[#6e70b2a0]]
"Get() for Int64"