From 3e9348985d071912f0dfca41ea03251fe74093ef Mon Sep 17 00:00:00 2001 From: nulltoken Date: Tue, 28 Feb 2012 15:43:05 +0100 Subject: Migrate unit tests to XUnit --- LibGit2Sharp.Tests/TupleFixture.cs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'LibGit2Sharp.Tests/TupleFixture.cs') 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 sut = new Tuple(integer, stringy); - [Test] + [Fact] public void Properties() { sut.Item1.ShouldEqual(integer); sut.Item2.ShouldEqual(stringy); } - [Test] + [Fact] public void GetHashCodeIsTheSame() { var sut2 = new Tuple(integer, stringy); @@ -27,7 +26,7 @@ namespace LibGit2Sharp.Tests sut.GetHashCode().ShouldEqual(sut2.GetHashCode()); } - [Test] + [Fact] public void GetHashCodeIsDifferent() { var sut2 = new Tuple(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(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(integer + 1, stringy); -- cgit v1.2.3