summaryrefslogtreecommitdiff
path: root/src/test/PlayingWithActiveReports.Test/Domain/QuestionTest.cs
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2007-11-02 17:03:42 -0600
committermo khan <mo@mokhan.ca>2007-11-02 17:03:42 -0600
commit36ffa9f174c831146ca5630a41b75c9d213f3db6 (patch)
tree3ba71964656b385995bb9557c87a05b131348ddf /src/test/PlayingWithActiveReports.Test/Domain/QuestionTest.cs
import from svntrunkmain
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