public void CanDisconnectTopologyNodes() { using (var topoDB = new TopologyTestDatabase(Allocator.Persistent)) { var a = topoDB.CreateNode(); var b = topoDB.CreateNode(); Assert.AreEqual(0, topoDB.GetOutputs(a)[k_OutputPorts[0]].Count()); Assert.AreEqual(0, topoDB.GetInputs(b)[k_InputPorts[0]].Count()); topoDB.Connect(a, k_OutputPorts[0], b, k_InputPorts[0]); Assert.AreEqual(1, topoDB.GetOutputs(a)[k_OutputPorts[0]].Count()); Assert.AreEqual(1, topoDB.GetInputs(b)[k_InputPorts[0]].Count()); topoDB.Disconnect(a, k_OutputPorts[0], b, k_InputPorts[0]); Assert.AreEqual(0, topoDB.GetOutputs(a)[k_OutputPorts[0]].Count()); Assert.AreEqual(0, topoDB.GetInputs(b)[k_InputPorts[0]].Count()); } }