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/TupleFixture.cs | |
parent | 8da9472dc250d879d8cfae029cd8ee395edc9469 (diff) |
Migrate unit tests to XUnit
Diffstat (limited to 'LibGit2Sharp.Tests/TupleFixture.cs')
-rw-r--r-- | LibGit2Sharp.Tests/TupleFixture.cs | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/LibGit2Sharp.Tests/TupleFixture.cs b/LibGit2Sharp.Tests/TupleFixture.cs index f909bcd0..58984b1d 100644 --- a/LibGit2Sharp.Tests/TupleFixture.cs +++ b/LibGit2Sharp.Tests/TupleFixture.cs @@ -1,10 +1,9 @@ using LibGit2Sharp.Core.Compat; using LibGit2Sharp.Tests.TestHelpers; -using NUnit.Framework; +using Xunit; namespace LibGit2Sharp.Tests { - [TestFixture] public class TupleFixture { const int integer = 2; @@ -12,14 +11,14 @@ namespace LibGit2Sharp.Tests private readonly Tuple<int, string> sut = new Tuple<int, string>(integer, stringy); - [Test] + [Fact] public void Properties() { sut.Item1.ShouldEqual(integer); sut.Item2.ShouldEqual(stringy); } - [Test] + [Fact] public void GetHashCodeIsTheSame() { var sut2 = new Tuple<int, string>(integer, stringy); @@ -27,7 +26,7 @@ namespace LibGit2Sharp.Tests sut.GetHashCode().ShouldEqual(sut2.GetHashCode()); } - [Test] + [Fact] public void GetHashCodeIsDifferent() { var sut2 = new Tuple<int, string>(integer + 1, stringy); @@ -35,8 +34,8 @@ namespace LibGit2Sharp.Tests sut.GetHashCode().ShouldNotEqual(sut2.GetHashCode()); } - [Test] - public void Equals() + [Fact] + public void VerifyEquals() { var sut2 = new Tuple<int, string>(integer, stringy); @@ -44,8 +43,8 @@ namespace LibGit2Sharp.Tests Equals(sut, sut2).ShouldBeTrue(); } - [Test] - public void NotEquals() + [Fact] + public void VerifyNotEquals() { var sut2 = new Tuple<int, string>(integer + 1, stringy); |