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
-~----------~----~----~----~------~----~------~--~---