From 155e5337a9d0799363e1263d7f6c9833975e9648 Mon Sep 17 00:00:00 2001 From: Tigger Kindel Date: Wed, 19 Jul 2023 08:32:12 -0600 Subject: [PATCH] got rid of compile warnings in tests --- UnitTests/Views/PanelViewTests.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/UnitTests/Views/PanelViewTests.cs b/UnitTests/Views/PanelViewTests.cs index 4ccd85f01..689032520 100644 --- a/UnitTests/Views/PanelViewTests.cs +++ b/UnitTests/Views/PanelViewTests.cs @@ -40,11 +40,11 @@ namespace Terminal.Gui.ViewTests { { var pv = new PanelView (new Label ("This is a test.")); Assert.NotNull (pv.Child); - Assert.Equal (1, pv.Subviews [0].Subviews.Count); + Assert.Single (pv.Subviews [0].Subviews); pv.Child = null; Assert.Null (pv.Child); - Assert.Equal (0, pv.Subviews [0].Subviews.Count); + Assert.Empty (pv.Subviews [0].Subviews); } [Fact] @@ -52,11 +52,11 @@ namespace Terminal.Gui.ViewTests { { var pv = new PanelView (); Assert.Null (pv.Child); - Assert.Equal (0, pv.Subviews [0].Subviews.Count); + Assert.Empty (pv.Subviews [0].Subviews); pv.Add (new Label ("This is a test.")); Assert.NotNull (pv.Child); - Assert.Equal (1, pv.Subviews [0].Subviews.Count); + Assert.Single (pv.Subviews [0].Subviews); } [Fact] @@ -64,12 +64,12 @@ namespace Terminal.Gui.ViewTests { { var pv = new PanelView (new Label ("This is a test.")); Assert.NotNull (pv.Child); - Assert.Equal (1, pv.Subviews [0].Subviews.Count); + Assert.Single (pv.Subviews [0].Subviews); Assert.IsType