diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-02-28 18:43:05 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-02-28 22:49:12 +0400 |
commit | 3e9348985d071912f0dfca41ea03251fe74093ef (patch) | |
tree | 8f9568ef4f5dcc204cdb39c5397443c9227065b8 /LibGit2Sharp.Tests/ResetFixture.cs | |
parent | 8da9472dc250d879d8cfae029cd8ee395edc9469 (diff) |
Migrate unit tests to XUnit
Diffstat (limited to 'LibGit2Sharp.Tests/ResetFixture.cs')
-rw-r--r-- | LibGit2Sharp.Tests/ResetFixture.cs | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/LibGit2Sharp.Tests/ResetFixture.cs b/LibGit2Sharp.Tests/ResetFixture.cs index cfe0791d..75c6b1e7 100644 --- a/LibGit2Sharp.Tests/ResetFixture.cs +++ b/LibGit2Sharp.Tests/ResetFixture.cs @@ -1,15 +1,16 @@ using System; using System.IO; using LibGit2Sharp.Tests.TestHelpers; -using NUnit.Framework; +using Xunit; +using Xunit.Extensions; namespace LibGit2Sharp.Tests { - [TestFixture] public class ResetFixture : BaseFixture { - [TestCase(true)] - [TestCase(false)] + [Theory] + [InlineData(true)] + [InlineData(false)] public void ResetANewlyInitializedRepositoryThrows(bool isBare) { SelfCleaningDirectory scd = BuildSelfCleaningDirectory(); @@ -20,7 +21,7 @@ namespace LibGit2Sharp.Tests } } - [Test] + [Fact] public void SoftResetToTheHeadOfARepositoryDoesNotChangeTheTargetOfTheHead() { using (var repo = new Repository(BareTestRepoPath)) @@ -33,7 +34,7 @@ namespace LibGit2Sharp.Tests } } - [Test] + [Fact] public void SoftResetSetsTheHeadToTheDereferencedCommitOfAChainedTag() { TemporaryCloneOfTestRepo path = BuildTemporaryCloneOfTestRepo(); @@ -46,7 +47,7 @@ namespace LibGit2Sharp.Tests } } - [Test] + [Fact] public void ResettingWithBadParamsThrows() { using (var repo = new Repository(BareTestRepoPath)) @@ -57,14 +58,14 @@ namespace LibGit2Sharp.Tests } } - [Test] + [Fact] public void SoftResetSetsTheHeadToTheSpecifiedCommit() { /* Make the Head point to a branch through its name */ AssertSoftReset(b => b.Name, false, b => b.Name); } - [Test] + [Fact] public void SoftResetSetsTheDetachedHeadToTheSpecifiedCommit() { /* Make the Head point to a commit through its sha (Detaches the Head) */ @@ -126,7 +127,7 @@ namespace LibGit2Sharp.Tests repo.Index.RetrieveStatus().IsDirty.ShouldBeFalse(); } - [Test] + [Fact] public void MixedResetRefreshesTheIndex() { SelfCleaningDirectory scd = BuildSelfCleaningDirectory(); @@ -143,7 +144,7 @@ namespace LibGit2Sharp.Tests } } - [Test] + [Fact] public void MixedResetInABareRepositoryThrows() { using (var repo = new Repository(BareTestRepoPath)) |