This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
mfgames-io-cil/tests/MfGames.IO.Tests/GitRootTests.cs

22 lines
419 B
C#

using System.IO;
using MfGames.IO.Extensions;
using Xunit;
namespace MfGames.IO.Tests
{
public class GitRootTests
{
[Fact]
public void FindGitRoot()
{
DirectoryInfo? dir = this.GetType().GetDirectory();
DirectoryInfo? git = dir.FindGitRoot();
Assert.NotNull(git);
Assert.True(git!.GetDirectories(".git").Length > 0);
}
}
}