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
2021-12-06 23:37:10 -06:00

21 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);
}
}
}