comparison Library/LibrarySystem.Tests/Core/PublisherTests.cs @ 43:aef06698d9e2 Test

Added the library tests
author Steven Hollidge <stevenhollidge@hotmail.com>
date Wed, 04 Apr 2012 19:20:20 +0100
parents
children
comparison
equal deleted inserted replaced
42:0d4aff4f699d 43:aef06698d9e2
1 using System;
2 using LibrarySystem.Core;
3 using NUnit.Framework;
4
5 namespace LibrarySystem.Tests.Core
6 {
7 [TestFixture]
8 class PublisherTests
9 {
10 [Test]
11 public void Create_WithValidName_ShouldReturnPublisher()
12 {
13 var publisher = Publisher.Create("dummy");
14 Assert.IsNotNull(publisher);
15 }
16
17 [Test]
18 public void Create_WithNullName_ShouldThrowAgrumentNullException()
19 {
20 Assert.Throws<ArgumentNullException>(() => Publisher.Create(null));
21 }
22 }
23 }