Upgrade Nuget
大石头 authored at 2025-07-14 14:36:20
586.00 B
GitSync
using GitSync;

namespace TestProject1;

public class GitRepoTests
{
    private GitRepo _gitRepo;
    public GitRepoTests()
    {
        _gitRepo = new GitRepo { Name = "Core", Path = "D:\\X\\NewLife.Map" };
    }

    [Fact]
    public void GetBranchs()
    {
        var rs = _gitRepo.GetBranchs();
        Assert.NotEmpty(rs);
    }

    [Fact]
    public void GetRemotes()
    {
        var rs = _gitRepo.GetRemotes();
        Assert.NotEmpty(rs);
    }

    [Fact]
    public void GetChanges()
    {
        var rs = _gitRepo.GetChanges();
        Assert.NotEmpty(rs);
    }
}