using System;
using NUnit.Framework;

using DevTyr.Gullap;

namespace DevTyr.Gullap.Tests.With_Guard.For_NotNull
{
	[TestFixture]
	public class When_argument_is_null
	{
		[Test]
		public void Should_throw_argumentnullexception ()
		{
			Assert.Throws<ArgumentNullException> (() => Guard.NotNull (null, null));
		}

		[Test]
		public void Should_include_argument_name_in_exception_message ()
		{
			object what = null;
			Assert.Throws<ArgumentNullException> (() => Guard.NotNull (what, "what"), "what");
		}
    }
}

using System;
using NUnit.Framework;

using DevTyr.Gullap;

namespace DevTyr.Gullap.Tests.With_Guard.For_NotNull
{
	[TestFixture]
	public class When_argument_is_null
	{
		[Test]
		public void Should_throw_argumentnullexception ()
		{
			Assert.Throws<ArgumentNullException> (() => Guard.NotNull (null, null));
		}

		[Test]
		public void Should_include_argument_name_in_exception_message ()
		{
			object what = null;
			Assert.Throws<ArgumentNullException> (() => Guard.NotNull (what, "what"), "what");
		}

		[Test]
		public void Should_include_message_if_provided ()
		{
			object what = null;
			Assert.IsTrue (
				Assert.Throws<ArgumentNullException> (() => Guard.NotNull (what, "what", "the real deal"))
					.Message.Contains("the real deal")
			);
		}
    }
}

Add new test for NotNull with provided message.
Add new test for NotNull with provided message.
