diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2015-05-12 11:08:46 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2015-05-12 11:08:46 -0700 |
commit | d26cef6285d00407268cd1d3d2ea6f0c21995966 (patch) | |
tree | 080924d0a9fd8f52d88b1ee4fb76f9aa3bd802cd /csharp/src/ProtocolBuffers.Test/Collections | |
parent | c58b2c66448f83c25da0251fe6cf5b12299fa581 (diff) | |
parent | 90c8932fc7316b5afaae350395624b6fd2e73a97 (diff) | |
download | protobuf-d26cef6285d00407268cd1d3d2ea6f0c21995966.tar.gz protobuf-d26cef6285d00407268cd1d3d2ea6f0c21995966.tar.bz2 protobuf-d26cef6285d00407268cd1d3d2ea6f0c21995966.zip |
Merge pull request #366 from jskeet/csharp
Convert back to using NUnit, which is now loaded via NuGet.
Diffstat (limited to 'csharp/src/ProtocolBuffers.Test/Collections')
-rw-r--r-- | csharp/src/ProtocolBuffers.Test/Collections/PopsicleListTest.cs | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/csharp/src/ProtocolBuffers.Test/Collections/PopsicleListTest.cs b/csharp/src/ProtocolBuffers.Test/Collections/PopsicleListTest.cs index 29584705..f336a84b 100644 --- a/csharp/src/ProtocolBuffers.Test/Collections/PopsicleListTest.cs +++ b/csharp/src/ProtocolBuffers.Test/Collections/PopsicleListTest.cs @@ -36,13 +36,13 @@ using System;
using System.Collections.Generic;
-using Xunit;
+using NUnit.Framework;
namespace Google.ProtocolBuffers.Collections
{
public class PopsicleListTest
{
- [Fact]
+ [Test]
public void MutatingOperationsOnFrozenList()
{
PopsicleList<string> list = new PopsicleList<string>();
@@ -55,20 +55,20 @@ namespace Google.ProtocolBuffers.Collections Assert.Throws<NotSupportedException>(() => list.Add(new[] { "", "" }));
}
- [Fact]
+ [Test]
public void NonMutatingOperationsOnFrozenList()
{
PopsicleList<string> list = new PopsicleList<string>();
list.MakeReadOnly();
- Assert.False(list.Contains(""));
- Assert.Equal(0, list.Count);
+ Assert.IsFalse(list.Contains(""));
+ Assert.AreEqual(0, list.Count);
list.CopyTo(new string[5], 0);
list.GetEnumerator();
- Assert.Equal(-1, list.IndexOf(""));
- Assert.True(list.IsReadOnly);
+ Assert.AreEqual(-1, list.IndexOf(""));
+ Assert.IsTrue(list.IsReadOnly);
}
- [Fact]
+ [Test]
public void MutatingOperationsOnFluidList()
{
PopsicleList<string> list = new PopsicleList<string>();
@@ -80,26 +80,26 @@ namespace Google.ProtocolBuffers.Collections list.RemoveAt(0);
}
- [Fact]
+ [Test]
public void NonMutatingOperationsOnFluidList()
{
PopsicleList<string> list = new PopsicleList<string>();
- Assert.False(list.Contains(""));
- Assert.Equal(0, list.Count);
+ Assert.IsFalse(list.Contains(""));
+ Assert.AreEqual(0, list.Count);
list.CopyTo(new string[5], 0);
list.GetEnumerator();
- Assert.Equal(-1, list.IndexOf(""));
- Assert.False(list.IsReadOnly);
+ Assert.AreEqual(-1, list.IndexOf(""));
+ Assert.IsFalse(list.IsReadOnly);
}
- [Fact]
+ [Test]
public void DoesNotAddNullEnumerable()
{
PopsicleList<string> list = new PopsicleList<string>();
Assert.Throws<ArgumentNullException>(() => list.Add((IEnumerable<string>) null));
}
- [Fact]
+ [Test]
public void DoesNotAddRangeWithNull()
{
PopsicleList<string> list = new PopsicleList<string>();
@@ -107,14 +107,14 @@ namespace Google.ProtocolBuffers.Collections Assert.Throws<ArgumentNullException>(() => list.Add(new[] {"a", "b", null}));
}
- [Fact]
+ [Test]
public void DoesNotAddNull()
{
PopsicleList<string> list = new PopsicleList<string>();
Assert.Throws<ArgumentNullException>(() => list.Add((string) null));
}
- [Fact]
+ [Test]
public void DoesNotSetNull()
{
PopsicleList<string> list = new PopsicleList<string>();
|