Hy,

 

I can't understand this behavior of Assert with DateTime variables.

This is my class

 

    public class Foo

    {

        private string _name;

        private DateTime _creation;

 

        public string Name

        {

            get { return _name; }

        }

 

        public DateTime Creation

        {

            get { return _creation; }

        }

    }

 

And this is my first test

 

    [TestFixture]

    public class FooFixture

    {

        [Test]

        public void Ctor()

        {

            Foo item = new Foo();

            Assert.AreEqual(item.Creation, DateTime.MinValue);

            Assert.AreNotEqual(item.Creation, DateTime.MinValue);

        }

    }

 

I can't understand why this simple test pass without error ?

How AreEqual and AreNotEqual are true at the same time ?

 

Thanks in advance.

Claudio

 

 

 

 


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