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/LazyFixture.cs | |
parent | 8da9472dc250d879d8cfae029cd8ee395edc9469 (diff) |
Migrate unit tests to XUnit
Diffstat (limited to 'LibGit2Sharp.Tests/LazyFixture.cs')
-rw-r--r-- | LibGit2Sharp.Tests/LazyFixture.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/LibGit2Sharp.Tests/LazyFixture.cs b/LibGit2Sharp.Tests/LazyFixture.cs index f878b88b..a79ec43c 100644 --- a/LibGit2Sharp.Tests/LazyFixture.cs +++ b/LibGit2Sharp.Tests/LazyFixture.cs @@ -1,21 +1,20 @@ using System; using LibGit2Sharp.Core.Compat; using LibGit2Sharp.Tests.TestHelpers; -using NUnit.Framework; +using Xunit; namespace LibGit2Sharp.Tests { - [TestFixture] public class LazyFixture { - [Test] + [Fact] public void CanReturnTheValue() { var lazy = new Lazy<int>(() => 2); lazy.Value.ShouldEqual(2); } - [Test] + [Fact] public void IsLazilyEvaluated() { int i = 0; @@ -26,7 +25,7 @@ namespace LibGit2Sharp.Tests lazy.Value.ShouldEqual(1); } - [Test] + [Fact] public void IsEvaluatedOnlyOnce() { int i = 0; |