using System; using NUnit.Framework; using Rhino.Mocks; using Ringtoets.Common.Data; using Ringtoets.Common.Forms.PresentationObjects; namespace Ringtoets.Common.Forms.Test.PresentationObjects { [TestFixture] public class AssessmentSectionCommentContextTest { [Test] public void Constuctor_DefaultValues() { // Setup var mocks = new MockRepository(); var assessmentSectionMock = mocks.StrictMock(); mocks.ReplayAll(); // Call var context = new AssessmentSectionCommentContext(assessmentSectionMock); // Assert Assert.AreSame(assessmentSectionMock, context.AssessmentSection); } [Test] public void Constructor_AssessmentSectionNull_ThrowsArgumentNullException() { // Call TestDelegate call = () => new AssessmentSectionCommentContext(null); // Assert var exception = Assert.Throws(call); Assert.AreEqual("assessmentSection", exception.ParamName); } } }