Skip to content

Commit

Permalink
Add some unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arenekosreal committed May 21, 2024
1 parent 281b484 commit f5d3907
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 10 deletions.
25 changes: 25 additions & 0 deletions E5Renewer.Tests/TypeArrayExtendsTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
namespace E5Renewer.Tests;

/// <summary>
/// Test
/// <see cref="TypeArrayExtends"/>
/// </summary>
[TestClass]
public class TypeArrayExtendsTests
{
private void TestGetNonAbstractClassesAssainableToHelper<T>(uint count)
{
IEnumerable<Type> typesFound = typeof(TypeArrayExtendsTests).Assembly.GetTypes().GetNonAbstractClassesAssainableTo<T>();
Assert.AreEqual((int)count, typesFound.Count());
}

/// <summary>
/// Test
/// <see cref="TestGetNonAbstractClassesAssainableTo"/>
/// </summary>
[TestMethod]
public void TestGetNonAbstractClassesAssainableTo()
{
this.TestGetNonAbstractClassesAssainableToHelper<TypeArrayExtendsTests>(1);
}
}
10 changes: 0 additions & 10 deletions E5Renewer.Tests/UnitTest1.cs

This file was deleted.

10 changes: 10 additions & 0 deletions E5Renewer.Tests/WebApplicationExtendsTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace E5Renewer.Tests;

/// <summary> Test
/// <see cref="WebApplicationExtends"/>.
/// </summary>
[TestClass]
public class WebApplicationExtendsTests
{

}

0 comments on commit f5d3907

Please sign in to comment.