diff options
author | yorah <yoram.harmelin@gmail.com> | 2012-05-25 17:34:02 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-05-25 19:24:52 +0400 |
commit | e02f76b37cbe68570bc58c21516550ee94d119f6 (patch) | |
tree | c5d71cfeff41baf50a31228bad30cab0bdcc8350 /LibGit2Sharp.Tests | |
parent | 0072b7e52c9ed23e7b7a02cdb17e0b96a9d5835a (diff) |
Replace AssertExtensions.ShouldBeTrue method by Assert.True
Diffstat (limited to 'LibGit2Sharp.Tests')
-rw-r--r-- | LibGit2Sharp.Tests/BranchFixture.cs | 24 | ||||
-rw-r--r-- | LibGit2Sharp.Tests/CommitFixture.cs | 12 | ||||
-rw-r--r-- | LibGit2Sharp.Tests/ConfigurationFixture.cs | 4 | ||||
-rw-r--r-- | LibGit2Sharp.Tests/IndexFixture.cs | 2 | ||||
-rw-r--r-- | LibGit2Sharp.Tests/ObjectIdFixture.cs | 10 | ||||
-rw-r--r-- | LibGit2Sharp.Tests/ReferenceFixture.cs | 10 | ||||
-rw-r--r-- | LibGit2Sharp.Tests/RepositoryFixture.cs | 20 | ||||
-rw-r--r-- | LibGit2Sharp.Tests/StatusFixture.cs | 4 | ||||
-rw-r--r-- | LibGit2Sharp.Tests/TagFixture.cs | 24 | ||||
-rw-r--r-- | LibGit2Sharp.Tests/TestHelpers/AssertExtensions.cs | 5 | ||||
-rwxr-xr-x | LibGit2Sharp.Tests/TreeFixture.cs | 2 | ||||
-rw-r--r-- | LibGit2Sharp.Tests/TupleFixture.cs | 4 |
12 files changed, 58 insertions, 63 deletions
diff --git a/LibGit2Sharp.Tests/BranchFixture.cs b/LibGit2Sharp.Tests/BranchFixture.cs index cd64296d..76f2a200 100644 --- a/LibGit2Sharp.Tests/BranchFixture.cs +++ b/LibGit2Sharp.Tests/BranchFixture.cs @@ -229,7 +229,7 @@ namespace LibGit2Sharp.Tests Assert.Equal("br2", branch2.Name); Assert.Equal(branch, branch2); - (branch2 == branch).ShouldBeTrue(); + Assert.True((branch2 == branch)); } } @@ -243,7 +243,7 @@ namespace LibGit2Sharp.Tests Assert.False(master.IsRemote); Assert.Equal("master", master.Name); Assert.Equal("refs/heads/master", master.CanonicalName); - master.IsCurrentRepositoryHead.ShouldBeTrue(); + Assert.True(master.IsCurrentRepositoryHead); Assert.Equal("4c062a6361ae6959e06292c1fa5e2822d9c96345", master.Tip.Sha); } } @@ -294,7 +294,7 @@ namespace LibGit2Sharp.Tests using (var repo = new Repository(StandardTestRepoPath)) { Branch master = repo.Branches["master"]; - master.IsTracking.ShouldBeTrue(); + Assert.True(master.IsTracking); Assert.Equal(repo.Branches["refs/remotes/origin/master"], master.TrackedBranch); Assert.Equal(2, master.AheadBy); Assert.Equal(2, master.BehindBy); @@ -307,7 +307,7 @@ namespace LibGit2Sharp.Tests using (var repo = new Repository(StandardTestRepoPath)) { var branch = repo.Branches["track-local"]; - branch.IsTracking.ShouldBeTrue(); + Assert.True(branch.IsTracking); Assert.Equal(repo.Branches["master"], branch.TrackedBranch); Assert.Equal(2, branch.AheadBy); Assert.Equal(2, branch.BehindBy); @@ -343,7 +343,7 @@ namespace LibGit2Sharp.Tests using (var repo = new Repository(path.RepositoryPath)) { Branch master = repo.Branches["master"]; - master.IsCurrentRepositoryHead.ShouldBeTrue(); + Assert.True(master.IsCurrentRepositoryHead); Branch branch = repo.Branches[name]; branch.ShouldNotBeNull(); @@ -352,7 +352,7 @@ namespace LibGit2Sharp.Tests Assert.False(repo.Info.IsHeadDetached); Assert.False(test.IsRemote); - test.IsCurrentRepositoryHead.ShouldBeTrue(); + Assert.True(test.IsCurrentRepositoryHead); Assert.Equal(repo.Head, test); Assert.False(master.IsCurrentRepositoryHead); @@ -368,13 +368,13 @@ namespace LibGit2Sharp.Tests using (var repo = new Repository(path.RepositoryPath)) { Branch master = repo.Branches["master"]; - master.IsCurrentRepositoryHead.ShouldBeTrue(); + Assert.True(master.IsCurrentRepositoryHead); Branch test = repo.Checkout(name); Assert.False(repo.Info.IsHeadDetached); Assert.False(test.IsRemote); - test.IsCurrentRepositoryHead.ShouldBeTrue(); + Assert.True(test.IsCurrentRepositoryHead); Assert.Equal(repo.Head, test); Assert.False(master.IsCurrentRepositoryHead); @@ -390,11 +390,11 @@ namespace LibGit2Sharp.Tests using (var repo = new Repository(path.RepositoryPath)) { Branch master = repo.Branches["master"]; - master.IsCurrentRepositoryHead.ShouldBeTrue(); + Assert.True(master.IsCurrentRepositoryHead); Branch detachedHead = repo.Checkout(commitPointer); - repo.Info.IsHeadDetached.ShouldBeTrue(); + Assert.True(repo.Info.IsHeadDetached); Assert.False(detachedHead.IsRemote); Assert.Equal(detachedHead.Name, detachedHead.CanonicalName); @@ -404,8 +404,8 @@ namespace LibGit2Sharp.Tests Assert.Equal(repo.Head, detachedHead); Assert.False(master.IsCurrentRepositoryHead); - detachedHead.IsCurrentRepositoryHead.ShouldBeTrue(); - repo.Head.IsCurrentRepositoryHead.ShouldBeTrue(); + Assert.True(detachedHead.IsCurrentRepositoryHead); + Assert.True(repo.Head.IsCurrentRepositoryHead); } } diff --git a/LibGit2Sharp.Tests/CommitFixture.cs b/LibGit2Sharp.Tests/CommitFixture.cs index 3ad4f7a6..73a14dfa 100644 --- a/LibGit2Sharp.Tests/CommitFixture.cs +++ b/LibGit2Sharp.Tests/CommitFixture.cs @@ -138,7 +138,7 @@ namespace LibGit2Sharp.Tests foreach (Commit commit in repo.Commits.QueryBy(new Filter { Since = "a4a7dce85cf63874e984719f4fdd239f5145052f", SortBy = GitSortOptions.Time | GitSortOptions.Reverse })) { commit.ShouldNotBeNull(); - commit.Sha.StartsWith(reversedShas[count]).ShouldBeTrue(); + Assert.True(commit.Sha.StartsWith(reversedShas[count])); count++; } } @@ -181,7 +181,7 @@ namespace LibGit2Sharp.Tests foreach (Commit commit in repo.Commits.QueryBy(new Filter { Since = "a4a7dce85cf63874e984719f4fdd239f5145052f", SortBy = GitSortOptions.Time })) { commit.ShouldNotBeNull(); - commit.Sha.StartsWith(expectedShas[count]).ShouldBeTrue(); + Assert.True(commit.Sha.StartsWith(expectedShas[count])); count++; } } @@ -447,8 +447,8 @@ namespace LibGit2Sharp.Tests using (var repo = Repository.Init(scd.DirectoryPath)) { string dir = repo.Info.Path; - Path.IsPathRooted(dir).ShouldBeTrue(); - Directory.Exists(dir).ShouldBeTrue(); + Assert.True(Path.IsPathRooted(dir)); + Assert.True(Directory.Exists(dir)); InconclusiveIf(() => !repo.Config.HasGlobalConfig, "No Git global configuration available"); @@ -484,8 +484,8 @@ namespace LibGit2Sharp.Tests using (var repo = Repository.Init(scd.DirectoryPath)) { string dir = repo.Info.Path; - Path.IsPathRooted(dir).ShouldBeTrue(); - Directory.Exists(dir).ShouldBeTrue(); + Assert.True(Path.IsPathRooted(dir)); + Assert.True(Directory.Exists(dir)); const string relativeFilepath = "new.txt"; string filePath = Path.Combine(repo.Info.WorkingDirectory, relativeFilepath); diff --git a/LibGit2Sharp.Tests/ConfigurationFixture.cs b/LibGit2Sharp.Tests/ConfigurationFixture.cs index ae43e910..b1acf0ed 100644 --- a/LibGit2Sharp.Tests/ConfigurationFixture.cs +++ b/LibGit2Sharp.Tests/ConfigurationFixture.cs @@ -59,7 +59,7 @@ namespace LibGit2Sharp.Tests Assert.False(repo.Config.Get<bool>("unittests.boolsetting", false)); repo.Config.Set("unittests.boolsetting", true); - repo.Config.Get<bool>("unittests.boolsetting", false).ShouldBeTrue(); + Assert.True(repo.Config.Get<bool>("unittests.boolsetting", false)); repo.Config.Delete("unittests.boolsetting"); @@ -275,7 +275,7 @@ namespace LibGit2Sharp.Tests Assert.Equal("42", repo.Config.Get("unittests.ghostsetting", "42")); Assert.Equal(42, repo.Config.Get("unittests.ghostsetting", 42)); Assert.Equal(42L, repo.Config.Get("unittests.ghostsetting", 42L)); - repo.Config.Get("unittests.ghostsetting", true).ShouldBeTrue(); + Assert.True(repo.Config.Get("unittests.ghostsetting", true)); } } diff --git a/LibGit2Sharp.Tests/IndexFixture.cs b/LibGit2Sharp.Tests/IndexFixture.cs index 1ea96760..3f2c0f72 100644 --- a/LibGit2Sharp.Tests/IndexFixture.cs +++ b/LibGit2Sharp.Tests/IndexFixture.cs @@ -232,7 +232,7 @@ namespace LibGit2Sharp.Tests const string filename = "new_untracked_file.txt"; string fullPath = Path.Combine(repo.Info.WorkingDirectory, filename); - File.Exists(fullPath).ShouldBeTrue(); + Assert.True(File.Exists(fullPath)); repo.Index.Stage(fullPath); diff --git a/LibGit2Sharp.Tests/ObjectIdFixture.cs b/LibGit2Sharp.Tests/ObjectIdFixture.cs index 538b619d..659697b3 100644 --- a/LibGit2Sharp.Tests/ObjectIdFixture.cs +++ b/LibGit2Sharp.Tests/ObjectIdFixture.cs @@ -59,7 +59,7 @@ namespace LibGit2Sharp.Tests Assert.False((b.Equals(a))); Assert.False((a == b)); - (a != b).ShouldBeTrue(); + Assert.True((a != b)); } [Fact] @@ -77,10 +77,10 @@ namespace LibGit2Sharp.Tests var a = new ObjectId(validSha1); var b = new ObjectId(validSha1); - (a.Equals(b)).ShouldBeTrue(); - (b.Equals(a)).ShouldBeTrue(); + Assert.True((a.Equals(b))); + Assert.True((b.Equals(a))); - (a == b).ShouldBeTrue(); + Assert.True((a == b)); Assert.False((a != b)); } @@ -117,7 +117,7 @@ namespace LibGit2Sharp.Tests parsedObjectId.ShouldNotBeNull(); Assert.Equal(maybeSha, parsedObjectId.Sha); - maybeSha.StartsWith(parsedObjectId.ToString(3)).ShouldBeTrue(); + Assert.True(maybeSha.StartsWith(parsedObjectId.ToString(3))); Assert.Equal(maybeSha, parsedObjectId.ToString(42)); } } diff --git a/LibGit2Sharp.Tests/ReferenceFixture.cs b/LibGit2Sharp.Tests/ReferenceFixture.cs index a4218526..4b2c7ae9 100644 --- a/LibGit2Sharp.Tests/ReferenceFixture.cs +++ b/LibGit2Sharp.Tests/ReferenceFixture.cs @@ -176,7 +176,7 @@ namespace LibGit2Sharp.Tests const string refName = "refs/heads/test"; List<string> refs = repo.Refs.Select(r => r.CanonicalName).ToList(); - refs.Contains(refName).ShouldBeTrue(); + Assert.True(refs.Contains(refName)); repo.Refs.Delete(refName); @@ -348,11 +348,11 @@ namespace LibGit2Sharp.Tests Branch test = repo.Branches["test"]; Reference direct = repo.Refs.UpdateTarget("HEAD", test.Tip.Sha); - (direct is DirectReference).ShouldBeTrue(); + Assert.True((direct is DirectReference)); Assert.Equal(repo.Refs["HEAD"], direct); Reference symref = repo.Refs.UpdateTarget("HEAD", test.CanonicalName); - (symref is SymbolicReference).ShouldBeTrue(); + Assert.True((symref is SymbolicReference)); Assert.Equal(repo.Refs["HEAD"], symref); } @@ -485,13 +485,13 @@ namespace LibGit2Sharp.Tests const string newName = "refs/atic/tagtest"; List<string> refs = repo.Refs.Select(r => r.CanonicalName).ToList(); - refs.Contains(oldName).ShouldBeTrue(); + Assert.True(refs.Contains(oldName)); repo.Refs.Move(oldName, newName); List<string> refs2 = repo.Refs.Select(r => r.CanonicalName).ToList(); Assert.False(refs2.Contains(oldName)); - refs2.Contains(newName).ShouldBeTrue(); + Assert.True(refs2.Contains(newName)); Assert.Equal(refs2.Count, refs.Count); } diff --git a/LibGit2Sharp.Tests/RepositoryFixture.cs b/LibGit2Sharp.Tests/RepositoryFixture.cs index 32ba57f1..ef5eddfa 100644 --- a/LibGit2Sharp.Tests/RepositoryFixture.cs +++ b/LibGit2Sharp.Tests/RepositoryFixture.cs @@ -17,13 +17,13 @@ namespace LibGit2Sharp.Tests using (var repo = Repository.Init(scd.DirectoryPath, true)) { string dir = repo.Info.Path; - Path.IsPathRooted(dir).ShouldBeTrue(); - Directory.Exists(dir).ShouldBeTrue(); + Assert.True(Path.IsPathRooted(dir)); + Assert.True(Directory.Exists(dir)); CheckGitConfigFile(dir); Assert.Null(repo.Info.WorkingDirectory); Assert.Equal(scd.RootedDirectoryPath + Path.DirectorySeparatorChar, repo.Info.Path); - repo.Info.IsBare.ShouldBeTrue(); + Assert.True(repo.Info.IsBare); AssertInitializedRepository(repo); } @@ -46,8 +46,8 @@ namespace LibGit2Sharp.Tests using (var repo = Repository.Init(scd.DirectoryPath)) { string dir = repo.Info.Path; - Path.IsPathRooted(dir).ShouldBeTrue(); - Directory.Exists(dir).ShouldBeTrue(); + Assert.True(Path.IsPathRooted(dir)); + Assert.True(Directory.Exists(dir)); CheckGitConfigFile(dir); repo.Info.WorkingDirectory.ShouldNotBeNull(); @@ -63,7 +63,7 @@ namespace LibGit2Sharp.Tests private static void CheckGitConfigFile(string dir) { string configFilePath = Path.Combine(dir, "config"); - File.Exists(configFilePath).ShouldBeTrue(); + Assert.True(File.Exists(configFilePath)); string contents = File.ReadAllText(configFilePath); contents.IndexOf("repositoryformatversion = 0", StringComparison.Ordinal).ShouldNotEqual(-1); @@ -98,7 +98,7 @@ namespace LibGit2Sharp.Tests private static void AssertInitializedRepository(Repository repo) { repo.Info.Path.ShouldNotBeNull(); - repo.Info.IsEmpty.ShouldBeTrue(); + Assert.True(repo.Info.IsEmpty); Assert.False(repo.Info.IsHeadDetached); Reference headRef = repo.Refs["HEAD"]; @@ -107,7 +107,7 @@ namespace LibGit2Sharp.Tests Assert.Null(headRef.ResolveToDirectReference()); repo.Head.ShouldNotBeNull(); - repo.Head.IsCurrentRepositoryHead.ShouldBeTrue(); + Assert.True(repo.Head.IsCurrentRepositoryHead); Assert.Equal(headRef.TargetIdentifier, repo.Head.CanonicalName); Assert.Null(repo.Head.Tip); @@ -161,7 +161,7 @@ namespace LibGit2Sharp.Tests { repo.Info.Path.ShouldNotBeNull(); Assert.Null(repo.Info.WorkingDirectory); - repo.Info.IsBare.ShouldBeTrue(); + Assert.True(repo.Info.IsBare); Assert.False(repo.Info.IsEmpty); Assert.False(repo.Info.IsHeadDetached); } @@ -231,7 +231,7 @@ namespace LibGit2Sharp.Tests { GitObject commit = repo.Lookup(commitSha); GitObject commit2 = repo.Lookup(commitSha); - commit.Equals(commit2).ShouldBeTrue(); + Assert.True(commit.Equals(commit2)); Assert.Equal(commit2.GetHashCode(), commit.GetHashCode()); } } diff --git a/LibGit2Sharp.Tests/StatusFixture.cs b/LibGit2Sharp.Tests/StatusFixture.cs index e8491471..2922bc04 100644 --- a/LibGit2Sharp.Tests/StatusFixture.cs +++ b/LibGit2Sharp.Tests/StatusFixture.cs @@ -42,7 +42,7 @@ namespace LibGit2Sharp.Tests status.ShouldNotBeNull(); Assert.Equal(6, status.Count()); - status.IsDirty.ShouldBeTrue(); + Assert.True(status.IsDirty); Assert.Equal("new_untracked_file.txt", status.Untracked.Single()); Assert.Equal("modified_unstaged_file.txt", status.Modified.Single()); @@ -60,7 +60,7 @@ namespace LibGit2Sharp.Tests status2.ShouldNotBeNull(); Assert.Equal(6, status2.Count()); - status2.IsDirty.ShouldBeTrue(); + Assert.True(status2.IsDirty); Assert.Equal("new_untracked_file.txt", status2.Untracked.Single()); Assert.Equal(new[] { file, "modified_unstaged_file.txt" }, status2.Modified); diff --git a/LibGit2Sharp.Tests/TagFixture.cs b/LibGit2Sharp.Tests/TagFixture.cs index 1b616dec..b4c575de 100644 --- a/LibGit2Sharp.Tests/TagFixture.cs +++ b/LibGit2Sharp.Tests/TagFixture.cs @@ -81,7 +81,7 @@ namespace LibGit2Sharp.Tests const string anTagName = lwTagName + "_as_well"; Tag anTag = repo.Tags.Create(anTagName, commitE90810BSha, signatureNtk, "a nice message"); anTag.ShouldNotBeNull(); - anTag.IsAnnotated.ShouldBeTrue(); + Assert.True(anTag.IsAnnotated); Assert.Equal(commitE90810BSha, anTag.Target.Sha); Assert.Equal(anTag.Target, anTag.Annotation.Target); Assert.Equal(anTagName, anTag.Name); @@ -107,7 +107,7 @@ namespace LibGit2Sharp.Tests using (var repo = new Repository(path.RepositoryPath)) { Tag newTag = repo.Tags.Create("unit_test", "refs/heads/master", signatureTim, "a new tag"); - newTag.IsAnnotated.ShouldBeTrue(); + Assert.True(newTag.IsAnnotated); newTag.ShouldNotBeNull(); } } @@ -120,7 +120,7 @@ namespace LibGit2Sharp.Tests { Tag newTag = repo.Tags.Create("unit_test", tagTestSha, signatureTim, "a new tag"); newTag.ShouldNotBeNull(); - newTag.IsAnnotated.ShouldBeTrue(); + Assert.True(newTag.IsAnnotated); } } @@ -133,7 +133,7 @@ namespace LibGit2Sharp.Tests { Tag newTag = repo.ApplyTag("empty-annotated-tag", signatureNtk, string.Empty); newTag.ShouldNotBeNull(); - newTag.IsAnnotated.ShouldBeTrue(); + Assert.True(newTag.IsAnnotated); Assert.Equal(string.Empty, newTag.Annotation.Message); } } @@ -146,7 +146,7 @@ namespace LibGit2Sharp.Tests { Tag newTag = repo.Tags.Create("e90810b", tagTestSha, signatureTim, "a new tag", true); newTag.ShouldNotBeNull(); - newTag.IsAnnotated.ShouldBeTrue(); + Assert.True(newTag.IsAnnotated); } } @@ -161,7 +161,7 @@ namespace LibGit2Sharp.Tests { Tag newTag = repo.Tags.Create(tagName, commitE90810BSha, signatureNtk, tagMessage); Assert.Equal(commitE90810BSha, newTag.Target.Sha); - newTag.IsAnnotated.ShouldBeTrue(); + Assert.True(newTag.IsAnnotated); Assert.Equal("26623eee75440d63e10dcb752b88a0004c914161", newTag.Annotation.Sha); Assert.Equal(commitE90810BSha, newTag.Annotation.Target.Sha); } @@ -330,7 +330,7 @@ namespace LibGit2Sharp.Tests Tag tag = repo.ApplyTag("lightweight-tag", annotation.Sha); tag.ShouldNotBeNull(); - tag.IsAnnotated.ShouldBeTrue(); + Assert.True(tag.IsAnnotated); Assert.Equal(annotation.Target.Id, tag.Target.Id); Assert.Equal(annotation, tag.Annotation); @@ -350,7 +350,7 @@ namespace LibGit2Sharp.Tests Tag tag = repo.ApplyTag("annotatedtag-tag", annotation.Sha, signatureNtk, "A new annotation"); tag.ShouldNotBeNull(); - tag.IsAnnotated.ShouldBeTrue(); + Assert.True(tag.IsAnnotated); Assert.Equal(annotation.Id, tag.Annotation.Target.Id); tag.Annotation.ShouldNotEqual(annotation); @@ -490,7 +490,7 @@ namespace LibGit2Sharp.Tests const string tagName = "e90810b"; List<string> tags = repo.Tags.Select(r => r.Name).ToList(); - tags.Contains(tagName).ShouldBeTrue(); + Assert.True(tags.Contains(tagName)); repo.Tags.Delete(tagName); @@ -541,7 +541,7 @@ namespace LibGit2Sharp.Tests using (var repo = Repository.Init(scd.DirectoryPath)) { - repo.Info.IsEmpty.ShouldBeTrue(); + Assert.True(repo.Info.IsEmpty); Assert.Equal(0, repo.Tags.Count()); } } @@ -590,7 +590,7 @@ namespace LibGit2Sharp.Tests Assert.Equal("lw", tag2.Name); Assert.Equal(tag, tag2); - (tag2 == tag).ShouldBeTrue(); + Assert.True((tag2 == tag)); } } @@ -604,7 +604,7 @@ namespace LibGit2Sharp.Tests Assert.Equal("e90810b", tag.Name); Assert.Equal(commitE90810BSha, tag.Target.Sha); - tag.IsAnnotated.ShouldBeTrue(); + Assert.True(tag.IsAnnotated); Assert.Equal(tagE90810BSha, tag.Annotation.Sha); Assert.Equal("tanoku@gmail.com", tag.Annotation.Tagger.Email); Assert.Equal("Vicent Marti", tag.Annotation.Tagger.Name); diff --git a/LibGit2Sharp.Tests/TestHelpers/AssertExtensions.cs b/LibGit2Sharp.Tests/TestHelpers/AssertExtensions.cs index 0e67793e..8c8dd9c8 100644 --- a/LibGit2Sharp.Tests/TestHelpers/AssertExtensions.cs +++ b/LibGit2Sharp.Tests/TestHelpers/AssertExtensions.cs @@ -14,11 +14,6 @@ namespace LibGit2Sharp.Tests.TestHelpers Assert.Equal(expected.Second, current.Second); } - public static void ShouldBeTrue(this bool currentObject) - { - Assert.True(currentObject); - } - public static void ShouldNotBeNull(this object currentObject) { Assert.NotNull(currentObject); diff --git a/LibGit2Sharp.Tests/TreeFixture.cs b/LibGit2Sharp.Tests/TreeFixture.cs index 06adda3d..67d16c7d 100755 --- a/LibGit2Sharp.Tests/TreeFixture.cs +++ b/LibGit2Sharp.Tests/TreeFixture.cs @@ -18,7 +18,7 @@ namespace LibGit2Sharp.Tests TreeEntry treeEntry1 = tree["README"]; TreeEntry treeEntry2 = tree["README"]; Assert.Equal(treeEntry2, treeEntry1); - (treeEntry1 == treeEntry2).ShouldBeTrue(); + Assert.True((treeEntry1 == treeEntry2)); } } diff --git a/LibGit2Sharp.Tests/TupleFixture.cs b/LibGit2Sharp.Tests/TupleFixture.cs index 8eae182f..dadf51aa 100644 --- a/LibGit2Sharp.Tests/TupleFixture.cs +++ b/LibGit2Sharp.Tests/TupleFixture.cs @@ -39,8 +39,8 @@ namespace LibGit2Sharp.Tests { var sut2 = new Tuple<int, string>(integer, stringy); - sut.Equals(sut2).ShouldBeTrue(); - Equals(sut, sut2).ShouldBeTrue(); + Assert.True(sut.Equals(sut2)); + Assert.True(Equals(sut, sut2)); } [Fact] |