Exemplo n.º 1
0
        public void TestPersonConstructor4()
        {
            Person ericSRaymond = new Person("Eric S. Raymond", null);

            Assert.AreEqual(false, ericSRaymond.Age.HasValue);
        }
Exemplo n.º 2
0
        public void TestPersonConstructor2()
        {
            Person carlLinnaeus = new Person("Carl Linnaeus");

            Assert.AreEqual(null, carlLinnaeus.Age);
        }
Exemplo n.º 3
0
 public void TestPersonConstructor3_ThrowsException()
 {
     Person anonymous = new Person(String.Empty, new DateTime(1993, 3, 16));
 }
Exemplo n.º 4
0
        public void TestPersonConstructor1()
        {
            Person richardStallman = new Person("Richard Stallman", new DateTime(1953, 3, 16));

            Assert.AreEqual("Richard Stallman", richardStallman.Name);
        }