public void CreateLightCopyNetworkOldItemsAsAttributes() { var network = CreateTestNetwork(); var lightNetwork = NetworkHelper.CreateLightNetworkCopyWithOldItemsAsAttributes(network, null); Assert.AreEqual(network.Branches.Count, lightNetwork.Branches.Count); Assert.AreEqual(network.Nodes.Count, lightNetwork.Nodes.Count); Assert.AreEqual(lightNetwork.Nodes[0], lightNetwork.Branches[0].Source); Assert.AreEqual(lightNetwork.Nodes[1], lightNetwork.Branches[0].Target); }