diff options
author | Jon Skeet <jonskeet@google.com> | 2015-05-12 09:47:19 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-05-12 09:48:02 +0100 |
commit | 90c8932fc7316b5afaae350395624b6fd2e73a97 (patch) | |
tree | 080924d0a9fd8f52d88b1ee4fb76f9aa3bd802cd /csharp/src/ProtocolBuffers.Test/MessageUtilTest.cs | |
parent | c58b2c66448f83c25da0251fe6cf5b12299fa581 (diff) | |
download | protobuf-90c8932fc7316b5afaae350395624b6fd2e73a97.tar.gz protobuf-90c8932fc7316b5afaae350395624b6fd2e73a97.tar.bz2 protobuf-90c8932fc7316b5afaae350395624b6fd2e73a97.zip |
Convert back to using NUnit, which is now loaded via NuGet.
This includes the NUnit test adapter which allows NUnit tests to be run under VS without any extra plugins.
Unfortunate the compatibility tests using the abstract test fixture class show up as "external" tests, and aren't well presented - but they do run.
Diffstat (limited to 'csharp/src/ProtocolBuffers.Test/MessageUtilTest.cs')
-rw-r--r-- | csharp/src/ProtocolBuffers.Test/MessageUtilTest.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/csharp/src/ProtocolBuffers.Test/MessageUtilTest.cs b/csharp/src/ProtocolBuffers.Test/MessageUtilTest.cs index 186d9399..72909660 100644 --- a/csharp/src/ProtocolBuffers.Test/MessageUtilTest.cs +++ b/csharp/src/ProtocolBuffers.Test/MessageUtilTest.cs @@ -36,47 +36,47 @@ using System;
using Google.ProtocolBuffers.TestProtos;
-using Xunit;
+using NUnit.Framework;
namespace Google.ProtocolBuffers
{
public class MessageUtilTest
{
- [Fact]
+ [Test]
public void NullTypeName()
{
Assert.Throws<ArgumentNullException>(() => MessageUtil.GetDefaultMessage((string) null));
}
- [Fact]
+ [Test]
public void InvalidTypeName()
{
Assert.Throws<ArgumentException>(() => MessageUtil.GetDefaultMessage("invalidtypename"));
}
- [Fact]
+ [Test]
public void ValidTypeName()
{
- Assert.Same(TestAllTypes.DefaultInstance,
+ Assert.AreSame(TestAllTypes.DefaultInstance,
MessageUtil.GetDefaultMessage(typeof(TestAllTypes).AssemblyQualifiedName));
}
- [Fact]
+ [Test]
public void NullType()
{
Assert.Throws<ArgumentNullException>(() => MessageUtil.GetDefaultMessage((Type)null));
}
- [Fact]
+ [Test]
public void NonMessageType()
{
Assert.Throws<ArgumentException>(() => MessageUtil.GetDefaultMessage(typeof(string)));
}
- [Fact]
+ [Test]
public void ValidType()
{
- Assert.Same(TestAllTypes.DefaultInstance, MessageUtil.GetDefaultMessage(typeof(TestAllTypes)));
+ Assert.AreSame(TestAllTypes.DefaultInstance, MessageUtil.GetDefaultMessage(typeof(TestAllTypes)));
}
}
}
\ No newline at end of file |