From d1e205542938bf8d1b71348cb932d8a19fc24cbc Mon Sep 17 00:00:00 2001 From: chtenb Date: Wed, 9 Aug 2023 14:36:26 +0200 Subject: [PATCH] Revert for nuget tests --- .../TestNugetPackage.cs | 27 ++++++++++--------- .../TestNugetPackage.cs | 25 ++++++++--------- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/Rubjerg.Graphviz.NugetTest/TestNugetPackage.cs b/Rubjerg.Graphviz.NugetTest/TestNugetPackage.cs index 2b6120a..a73f4fe 100644 --- a/Rubjerg.Graphviz.NugetTest/TestNugetPackage.cs +++ b/Rubjerg.Graphviz.NugetTest/TestNugetPackage.cs @@ -1,15 +1,15 @@ -using System.Linq; +using System.Linq; using NUnit.Framework; -namespace Rubjerg.Graphviz.NugetTest; - -[TestFixture()] -public class TestNugetPackage +namespace Rubjerg.Graphviz.NugetTest { - [Test()] - public void TestReadDotFile() + [TestFixture()] + public class TestNugetPackage { - RootGraph root = RootGraph.FromDotString(@" + [Test()] + public void TestReadDotFile() + { + RootGraph root = RootGraph.FromDotString(@" digraph test { A; B; @@ -19,11 +19,12 @@ digraph test { A -> B[name = edgename]; } "); - var A = root.GetNode("A"); - Assert.AreEqual(3, A.EdgesOut().Count()); + var A = root.GetNode("A"); + Assert.AreEqual(3, A.EdgesOut().Count()); - var B = root.GetNode("B"); - _ = root.GetOrAddEdge(A, B, ""); - Assert.AreEqual(4, A.EdgesOut().Count()); + var B = root.GetNode("B"); + _ = root.GetOrAddEdge(A, B, ""); + Assert.AreEqual(4, A.EdgesOut().Count()); + } } } diff --git a/Rubjerg.Graphviz.TransitiveNugetTest/TestNugetPackage.cs b/Rubjerg.Graphviz.TransitiveNugetTest/TestNugetPackage.cs index 9bd4ebe..a73f4fe 100644 --- a/Rubjerg.Graphviz.TransitiveNugetTest/TestNugetPackage.cs +++ b/Rubjerg.Graphviz.TransitiveNugetTest/TestNugetPackage.cs @@ -1,15 +1,15 @@ using System.Linq; using NUnit.Framework; -namespace Rubjerg.Graphviz.NugetTest; - -[TestFixture()] -public class TestNugetPackage +namespace Rubjerg.Graphviz.NugetTest { - [Test()] - public void TestReadDotFile() + [TestFixture()] + public class TestNugetPackage { - RootGraph root = RootGraph.FromDotString(@" + [Test()] + public void TestReadDotFile() + { + RootGraph root = RootGraph.FromDotString(@" digraph test { A; B; @@ -19,11 +19,12 @@ digraph test { A -> B[name = edgename]; } "); - var A = root.GetNode("A"); - Assert.AreEqual(3, A.EdgesOut().Count()); + var A = root.GetNode("A"); + Assert.AreEqual(3, A.EdgesOut().Count()); - var B = root.GetNode("B"); - _ = root.GetOrAddEdge(A, B, ""); - Assert.AreEqual(4, A.EdgesOut().Count()); + var B = root.GetNode("B"); + _ = root.GetOrAddEdge(A, B, ""); + Assert.AreEqual(4, A.EdgesOut().Count()); + } } }