public void PopulateWith_ComplexToSimple_ConvertsObjects()
        {
            var complex = new ComplexMan();
            var simple  = new SimpleMan();

            simple.PopulateWith(complex);

            Assert.IsTrue(simple.HasValidProperties());
        }
        public void PopulateWith_InvalidConversion_SilentlyFail()
        {
            var complex = new ComplexMan()
            {
                Dob  = default(DateTime),
                Name = "",
                Age  = -5,
                Suit = Suits.Club,
            };
            var simple = new SimpleMan()
            {
                Dob  = DateTime.Now.ToShortDateString(),
                Name = "Billy",
                Age  = 160,
                Suit = "SOME RANDOMNESS"
            };

            complex.PopulateWith(simple);

            Assert.IsTrue(simple.HasValidProperties());
        }
        public void PopulateWith_SimpleToComplex_ConvertsObjects()
        {
            var complex = new ComplexMan()
            {
                Dob  = default(DateTime),
                Name = "",
                Age  = -5,
                Suit = Suits.Club,
            };
            var simple = new SimpleMan()
            {
                Dob  = DateTime.Now.ToShortDateString(),
                Name = "Billy",
                Age  = 160,
                Suit = "Spade"
            };

            complex.PopulateWith(simple);

            Assert.IsTrue(simple.HasValidProperties());
        }