当前分支必须在第一位,避免有些修改被切到其它分支上
大石头 authored at 2024-11-01 18:29:05
578.00 B
GitSync
using GitSync;

namespace TestProject1;

public class GitRepoTests
{
    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);
    }
}