Skip to content

Commit

Permalink
#86 remove not wanted test
Browse files Browse the repository at this point in the history
  • Loading branch information
maythamfahmi committed Oct 20, 2024
1 parent ad5dc7d commit 671dec9
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions CryptoNet.UnitTests/ShareProjectTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.IO;
using System.Linq;
using CryptoNet.Share;
using CryptoNet.Share.Extensions;
using NUnit.Framework;
Expand All @@ -10,17 +11,6 @@ namespace CryptoNet.UnitTests
[TestFixture]
public class ShareProjectTests
{
[Test]
public void TryGetSolutionDirectoryInfo_ShouldReturnNull_WhenNoSolutionFileExists()
{
// Act
var result = DirectoryExension.TryGetSolutionDirectoryInfo();

// Assert
result.ShouldNotBeNull();
result!.FullName.ShouldContain("CryptoNet");
}

[Test]
public void TryGetSolutionDirectoryInfo_ShouldReturnDirectoryWithTestFiles()
{
Expand All @@ -31,7 +21,7 @@ public void TryGetSolutionDirectoryInfo_ShouldReturnDirectoryWithTestFiles()
var result = DirectoryExension.TryGetSolutionDirectoryInfo();
var testFiles = Path.Combine(result!.FullName, "Resources", "TestFiles");
var di = new DirectoryInfo(testFiles);
var files = di.GetFiles("test.*");
var files = di.GetFiles("test.*").Select(e => e.FullName);

// Assert
files.ShouldNotBeNull();
Expand Down

0 comments on commit 671dec9

Please sign in to comment.