From 7e7b0148aa98671ae83ccc54a9c0c4455f5fd432 Mon Sep 17 00:00:00 2001 From: JT Date: Wed, 28 Feb 2024 00:22:08 -0800 Subject: [PATCH] "fix" tests --- .../Helper/PackageFactoryTests.cs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/StabilityMatrix.Tests/Helper/PackageFactoryTests.cs b/StabilityMatrix.Tests/Helper/PackageFactoryTests.cs index 4163922d..b4920bdb 100644 --- a/StabilityMatrix.Tests/Helper/PackageFactoryTests.cs +++ b/StabilityMatrix.Tests/Helper/PackageFactoryTests.cs @@ -8,31 +8,28 @@ public class PackageFactoryTests { private PackageFactory packageFactory = null!; private IEnumerable fakeBasePackages = null!; - + [TestInitialize] public void Setup() { - fakeBasePackages = new List - { - new DankDiffusion(null!, null!, null!, null!) - }; - packageFactory = new PackageFactory(fakeBasePackages); + fakeBasePackages = new List { new DankDiffusion(null!, null!, null!, null!) }; + packageFactory = new PackageFactory(fakeBasePackages, null, null, null, null, null); } - + [TestMethod] public void GetAllAvailablePackages_ReturnsAllPackages() { var result = packageFactory.GetAllAvailablePackages(); Assert.AreEqual(1, result.Count()); } - + [TestMethod] public void FindPackageByName_ReturnsPackage() { var result = packageFactory.FindPackageByName("dank-diffusion"); Assert.IsNotNull(result); } - + [TestMethod] public void FindPackageByName_ReturnsNull() {