コード例 #1
0
ファイル: ReleaseTest.cs プロジェクト: zhenguang/win-app
        public void Empty_ShouldBeFalse_WhenReleaseVersion_IsNotZero()
        {
            var file = new FileContract {
                Url = "https://protonvpn.com/download.exe", Sha1CheckSum = "012345", Arguments = "-install"
            };
            var contract = new ReleaseContract {
                Version = "0.0.1", ChangeLog = new[] { "Fixed" }, File = file
            };
            var release = new Release(contract, false, new Version());

            var result = release.Empty();

            result.Should().BeFalse();
        }