Skip to content

Commit 61947db

Browse files
Test cleanup
1 parent 215848b commit 61947db

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

src/Certify.Tests/Certify.Core.Tests.Unit/Certify.Core.Tests.Unit.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@
7373
<ProjectReference Include="..\..\..\..\certify-plugins\src\DataStores\SQLServer\Plugin.Datastore.SQLServer.csproj" />
7474
<ProjectReference Include="..\..\Certify.Core\Certify.Core.csproj" />
7575
<ProjectReference Include="..\..\Certify.Locales\Certify.Locales.csproj" />
76-
<ProjectReference Include="..\..\Certify.Models\Certify.Models.csproj" />
76+
7777
<ProjectReference Include="..\..\Certify.Providers\ACME\Anvil\Certify.Providers.ACME.Anvil.csproj" />
7878
<ProjectReference Include="..\..\Certify.Shared\Certify.Shared.Core.csproj" />
79-
<ProjectReference Include="..\..\Certify.SourceGenerators\Certify.SourceGenerators.csproj" />
79+
8080
</ItemGroup>
8181
<ItemGroup>
8282
<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.1" />

src/Certify.Tests/Certify.Core.Tests.Unit/Tests/MiscTests.cs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Linq;
43
using System.Text;
54
using System.Threading.Tasks;
@@ -116,20 +115,20 @@ public void TestDemoDataGeneration()
116115
Assert.IsTrue(items.Any());
117116
}
118117

119-
[TestMethod, Description("Source gen test")]
120-
public void TestSourceGen()
121-
{
122-
var typeName = SourceGenerators.ApiMethods.GetFormattedTypeName(typeof(string));
118+
/* [TestMethod, Description("Source gen test")]
119+
public void TestSourceGen()
120+
{
121+
var typeName = SourceGenerators.ApiMethods.GetFormattedTypeName(typeof(string));
123122
124-
Assert.AreEqual("System.String", typeName);
123+
Assert.AreEqual("System.String", typeName);
125124
126-
typeName = SourceGenerators.ApiMethods.GetFormattedTypeName(typeof(Certify.Models.CertificateAuthority));
125+
typeName = SourceGenerators.ApiMethods.GetFormattedTypeName(typeof(Certify.Models.CertificateAuthority));
127126
128-
Assert.AreEqual("Certify.Models.CertificateAuthority", typeName);
127+
Assert.AreEqual("Certify.Models.CertificateAuthority", typeName);
129128
130-
typeName = SourceGenerators.ApiMethods.GetFormattedTypeName(typeof(ICollection<Certify.Models.CertificateAuthority>));
129+
typeName = SourceGenerators.ApiMethods.GetFormattedTypeName(typeof(ICollection<Certify.Models.CertificateAuthority>));
131130
132-
Assert.AreEqual("System.Collections.Generic.ICollection<Certify.Models.CertificateAuthority>", typeName);
133-
}
131+
Assert.AreEqual("System.Collections.Generic.ICollection<Certify.Models.CertificateAuthority>", typeName);
132+
}*/
134133
}
135134
}

src/Certify.Tests/Certify.Core.Tests.Unit/Tests/RenewalRequiredTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ public void TestCheckAutoRenewalWithShortCertLifetime()
243243
[DataRow(true, 0.5f, 1, 75, 60, RenewalIntervalModes.PercentageLifetime, false, "1 day cert renewing at 75% lifetime, not due for renewal")]
244244
[DataRow(true, 0.76f, 1, 75, 60, RenewalIntervalModes.PercentageLifetime, true, "1 day cert renewing at 75% lifetime, due for renewal")]
245245
[DataRow(true, 180, 365, 90, 90, RenewalIntervalModes.PercentageLifetime, false, "365 day cert renewing at 90% lifetime, not due for renewal")]
246-
[DataRow(true, 180, 365, 90, 90, RenewalIntervalModes.PercentageLifetime, false, "365 day cert renewing at 90% lifetime, not due for renewal")]
247246
public void TestAutoRenewalWithPercentageCertLifetime(
248247
bool previouslyRenewed, float daysElapsed, float lifetimeDays, float customRenewalPercentage, int renewalInterval, string customIntervalMode,
249248
bool renewalExpected, string testDescription)

0 commit comments

Comments
 (0)