Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 1 | 0.976 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 32 | src/Iesi.Collections.Test/Generic/HashedSetFixture.cs |
2 | 16 | 32 | src/Iesi.Collections.Test/HashedSetFixture.cs |
| ||||
[Test] public void Serialization() { // serialize and then deserialize the ISet. Stream stream = new MemoryStream(); IFormatter formatter = new BinaryFormatter(); formatter.Serialize(stream, _set); stream.Position = 0; ISet<string> desSet = (ISet<string> )formatter.Deserialize(stream); stream.Close(); Assert.AreEqual(3, desSet.Count, "should have des 3 items"); Assert.IsTrue(desSet.Contains(one), "should contain one"); Assert.IsTrue(desSet.Contains(two), "should contain two"); Assert.IsTrue(desSet.Contains(three), "should contain three"); } |
| ||||
[Test] public void Serialization() { // serialize and then deserialize the ISet. Stream stream = new MemoryStream(); IFormatter formatter = new BinaryFormatter(); formatter.Serialize(stream, _set); stream.Position = 0; ISet desSet = (ISet) formatter.Deserialize(stream); stream.Close(); Assert.AreEqual(3, desSet.Count, "should have des 3 items"); Assert.IsTrue(desSet.Contains(one), "should contain one"); Assert.IsTrue(desSet.Contains(two), "should contain two"); Assert.IsTrue(desSet.Contains(three), "should contain three"); } |
| |||
[Test] public void Serialization() { // serialize and then deserialize the ISet. Stream stream = new MemoryStream(); IFormatter formatter = new BinaryFormatter(); formatter.Serialize(stream, _set); stream.Position = 0; [[#variable5eb55540]]desSet = ( [[#variable5eb55540]])formatter.Deserialize(stream); stream.Close(); Assert.AreEqual(3, desSet.Count, "should have des 3 items"); Assert.IsTrue(desSet.Contains(one), "should contain one"); Assert.IsTrue(desSet.Contains(two), "should contain two"); Assert.IsTrue(desSet.Contains(three), "should contain three"); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5eb55540]] | ISet |
1 | 2 | [[#5eb55540]] | ISet<string> |