summaryrefslogtreecommitdiff
path: root/src/test/PlayingWithActiveReports.Test/Domain/QuestionTest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/PlayingWithActiveReports.Test/Domain/QuestionTest.cs')
-rw-r--r--src/test/PlayingWithActiveReports.Test/Domain/QuestionTest.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/PlayingWithActiveReports.Test/Domain/QuestionTest.cs b/src/test/PlayingWithActiveReports.Test/Domain/QuestionTest.cs
new file mode 100644
index 0000000..c97250b
--- /dev/null
+++ b/src/test/PlayingWithActiveReports.Test/Domain/QuestionTest.cs
@@ -0,0 +1,15 @@
+using MbUnit.Framework;
+using PlayingWithActiveReports.Core.Domain;
+
+namespace PlayingWithActiveReports.Test.Domain {
+ [TestFixture]
+ public class QuestionTest {
+ [Test]
+ public void Should_Be_Able_To_Change_Answer( ) {
+ IQuestion question = new Question( "How old Are You?" );
+ question.ChangeAnswerTo( "23" );
+
+ Assert.AreEqual( new Answer( "23" ), question.CurrentAnswer );
+ }
+ }
+} \ No newline at end of file