Ejemplo n.º 1
0
 public void TestAmericanFull()
 {
     var testResult = new NorthAmerican(DateTime.Now.AddYears(-36), Gender.Female, true, true);
     Assert.IsNotNull(testResult.GetMother());
     Assert.AreNotEqual(0, testResult.GetMother().GetChildrenAt(null));
     Assert.IsNotNull(testResult.GetWealthAt(null));
 }
Ejemplo n.º 2
0
        public void TestResolveParents()
        {
            var testResult = new NoFuture.Rand.Domus.NorthAmerican(DateTime.Now.AddYears(-40), Gender.Female);
            Assert.IsNull(testResult.GetMother());
            Assert.IsNull(testResult.GetFather());
            testResult.ResolveParents();
            Assert.IsNotNull(testResult.GetMother());
            Assert.IsNotNull(testResult.GetFather());


        }
Ejemplo n.º 3
0
        public void TestNorthAmericanWithFamily()
        {
            var testResult = new NoFuture.Rand.Domus.NorthAmerican(DateTime.Now.AddYears(-40), Gender.Female, true, false );

            Assert.IsNotNull(testResult.GetMother());
            Assert.IsNotNull(testResult.GetFather());
            
        }