Esempio 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));
 }
Esempio 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());


        }
Esempio 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());
            
        }