Oh for got to say...

THANKS THANKS THANKS!!
I've been bangin my head on it for sometime now.

On Apr 20, 12:04 pm, MekkaNRG <[EMAIL PROTECTED]> wrote:
> Yep that was it the just the modifier. All the lights came on after
> that.
>
> Are there any other good resources for beginners. The MbUnit
> documentation isn't set as a tutorial. I'm still a little sketchy on
> how to build the test first.
>
> Its always the simple things. I think I went too simple
>
> "Everything should be made as simple as possible, but not one bit
> simpler. "
> -Albert Einstein
>
> On Apr 16, 11:12 pm, "Andrew Stopford" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Sorry late into this, Jay is spot on about the modifer it needs to be.
>
> > public class AccountTest
>
> > HTH
>
> > Andy
>
> > On 4/16/07, Joey Calisay <[EMAIL PROTECTED]> wrote:
>
> > > hey, didn't notice that, yep they are internal since there is no modifier
> > > for the class
>
> > > On 4/16/07, Jay Flowers < [EMAIL PROTECTED]> wrote:
>
> > > > My guess would be that it looks like your test classes are internal.
> > > > They should be public.
>
> > > > On 4/16/07, MekkaNRG < [EMAIL PROTECTED]> wrote:
>
> > > > > Hey Guys,
> > > > > I'm a beginner to MbUnit and unit testing in general. I've installed
> > > > > MbUnit on my C drive (no other option) and I'm using Visual C# Express
> > > > > which is installed on D:\ . However I tried a Assert.AreEqual test and
> > > > > nothing shows up in the MbUnit GUI. Is there something special about
> > > > > the set up.
>
> > > > > Test Code:
>
> > > > > using System;
> > > > > using System.Collections.Generic;
> > > > > using System.Text;
> > > > > using System.IO;
> > > > > using MbUnit.Framework;
>
> > > > > namespace FlashCardFlow
> > > > > {
>
> > > > >     [TestFixture]
> > > > >     class AccountTest
> > > > >     {
> > > > >         [Test]
> > > > >         public void TransferFunds()
> > > > >         {
> > > > >             Account source = new Account();
> > > > >             source.Deposit(200.00F);
> > > > >             Account destination = new Account();
> > > > >             destination.Deposit(150.00F);
>
> > > > >             source.TransferFunds(destination, 100.00F);
> > > > >             Assert.AreEqual(250.00F, destination.Balance);
> > > > >             Assert.AreEqual(100.00F, source.Balance );
> > > > >         }
>
> > > > >         private TextWriter writer = null;
>
> > > > >         [Test]
> > > > >         public void WriteLine()
> > > > >         {
> > > > >             this.writer = new StringWriter();
> > > > >             this.writer.WriteLine ("hello world");
> > > > >             Console.WriteLine(this.writer.ToString());
> > > > >         }
> > > > >     }
> > > > > }
>
> > > > > Account's Class:
> > > > >     class Account
> > > > >     {
> > > > >         private float balance;
> > > > >         public void Deposit(float amount)
> > > > >         {
> > > > >             balance += amount;
> > > > >         }
>
> > > > >         public void Withdraw(float amount)
> > > > >         {
> > > > >             balance -= amount;
> > > > >         }
>
> > > > >         public void TransferFunds(Account destination, float amount)
> > > > >         {
> > > > >         }
>
> > > > >         public float Balance
> > > > >         {
> > > > >             get{return balance;}
> > > > >         }
> > > > >     }
>
> > > > --
> > > > Jay Flowers
> > > > ----------------------------------------------------------------------
> > > >http://jayflowers.com
> > > > ---------------------------------------------------------------------
>
> > > --
> > > ----------------------
> > > joeycalisay
> > >http://devpinoy.org/blogs/joeycalisay/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to