| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 2 | 4 | 0.968 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 74 | src/NHibernate.Test/UtilityTest/TypeNameParserFixture.cs |
| 2 | 7 | 83 | src/NHibernate.Test/UtilityTest/TypeNameParserFixture.cs |
| ||||
[Test]
public void ParseWithDefaultAssemblyUnused()
{
const string defaultAssembly = "DefaultAssembly";
AssemblyQualifiedTypeName tn = TypeNameParser.Parse("SomeType, AnotherAssembly", null, defaultAssembly);
Assert.AreEqual("SomeType", tn.Type);
Assert.AreEqual("AnotherAssembly", tn.Assembly);
}
|
| ||||
[Test]
public void ParseWithDefaultAssembly()
{
const string defaultAssembly = "SomeAssembly";
AssemblyQualifiedTypeName tn = TypeNameParser.Parse("SomeType", null, defaultAssembly);
Assert.AreEqual("SomeType", tn.Type);
Assert.AreEqual(defaultAssembly, tn.Assembly);
}
|
| |||
[Test]
public void [[#variable4eb04d40]]()
{
const string defaultAssembly = [[#variable4eb04ca0]];
AssemblyQualifiedTypeName tn = TypeNameParser.Parse( [[#variable4eb04bc0]], null, defaultAssembly);
Assert.AreEqual("SomeType", tn.Type);
Assert.AreEqual( [[#variable4eb04b20]], tn.Assembly);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#4eb04d40]] | ParseWithDefaultAssemblyUnused |
| 1 | 2 | [[#4eb04d40]] | ParseWithDefaultAssembly |
| 2 | 1 | [[#4eb04ca0]] | "DefaultAssembly" |
| 2 | 2 | [[#4eb04ca0]] | "SomeAssembly" |
| 3 | 1 | [[#4eb04bc0]] | "SomeType, AnotherAssembly" |
| 3 | 2 | [[#4eb04bc0]] | "SomeType" |
| 4 | 1 | [[#4eb04b20]] | "AnotherAssembly" |
| 4 | 2 | [[#4eb04b20]] | defaultAssembly |