public void CreateThrowsArgumentExceptionWhenTextNull()
        {
            // ARRANGE
            var expectedExceptionMessage = "Must have text to create note. (Parameter 'text')";
            var subjectUnderTest         = new NoteFactory();

            // ACT
            // ASSERT
            var ex = Assert.Throws <ArgumentException>(
                () => subjectUnderTest.Create(null)
                );

            Assert.That(ex.Message, Is.EqualTo(expectedExceptionMessage));
        }
        public void CanCreateNote()
        {
            // ARRANGE
            var expectedNoteText = "This is just a reminder to go to the store.";
            var subjectUnderTest = new NoteFactory();

            // ACT
            var result = subjectUnderTest.Create(expectedNoteText);

            // ASSERT
            Assert.That(result, Is.Not.Null);
            Assert.That(result, Is.InstanceOf(typeof(INote)));
            Assert.That(result.Text, Is.EqualTo(expectedNoteText));
        }