Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 3 | 0.978 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 61 | src/NHibernate.Test/TypesTest/CurrencyTypeFixture.cs |
2 | 7 | 62 | src/NHibernate.Test/TypesTest/DecimalTypeFixture.cs |
| ||||
[Test] public void UnsavedValue() { var type = (CurrencyType)NHibernateUtil.Currency; object mappedValue = type.StringToObject("0"); Assert.AreEqual(0M, mappedValue); Assert.IsTrue(type.IsEqual(mappedValue, 0M), "'0' in the mapping file should have been converted to a 0m"); } |
| ||||
[Test] public void UnsavedValue() { DecimalType type = (DecimalType) NHibernateUtil.Decimal; object mappedValue = type.StringToObject("0"); Assert.AreEqual(0M, mappedValue); Assert.IsTrue(type.IsEqual(mappedValue, 0M), "'0' in the mapping file should have been converted to a 0m"); } |
| |||
[Test] public void UnsavedValue() { [[#variable6c9ce440]]type = ( [[#variable6c9ce3e0]])NHibernateUtil. [[#variable6c9ce380]]; object mappedValue = type.StringToObject("0"); Assert.AreEqual(0M, mappedValue); Assert.IsTrue(type.IsEqual(mappedValue, 0M), "'0' in the mapping file should have been converted to a 0m"); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6c9ce440]] | var |
1 | 2 | [[#6c9ce440]] | DecimalType |
2 | 1 | [[#6c9ce3e0]] | CurrencyType |
2 | 2 | [[#6c9ce3e0]] | DecimalType |
3 | 1 | [[#6c9ce380]] | Currency |
3 | 2 | [[#6c9ce380]] | Decimal |