summaryrefslogtreecommitdiff
path: root/src/test/PlayingWithActiveReports.Test/Domain
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
import from svntrunkmain
Diffstat (limited to 'src/test/PlayingWithActiveReports.Test/Domain')
-rw-r--r--src/test/PlayingWithActiveReports.Test/Domain/AnswerTest.cs12
-rw-r--r--src/test/PlayingWithActiveReports.Test/Domain/QuestionTest.cs15
2 files changed, 27 insertions, 0 deletions
diff --git a/src/test/PlayingWithActiveReports.Test/Domain/AnswerTest.cs b/src/test/PlayingWithActiveReports.Test/Domain/AnswerTest.cs
new file mode 100644
index 0000000..cb78089
--- /dev/null
+++ b/src/test/PlayingWithActiveReports.Test/Domain/AnswerTest.cs
@@ -0,0 +1,12 @@
+using MbUnit.Framework;
+using PlayingWithActiveReports.Core.Domain;
+
+namespace PlayingWithActiveReports.Test {
+ [TestFixture]
+ public class AnswerTest {
+ [Test]
+ public void Should_Be_Equal( ) {
+ Assert.AreEqual( new Answer( "23" ), new Answer( "23" ) );
+ }
+ }
+} \ No newline at end of file
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