Example #1
0
        public void CopyTo_WithEnumerables_ShouldNotCopyThem()
        {
            CopyToTestsModel result = new CopyToTestsModel();

            result.Copy(_expected);

            Assert.IsNull(result.Strings);
        }
Example #2
0
        public void CopyTo_WithNonEnumerables_ShouldCopy()
        {
            CopyToTestsModel result = new CopyToTestsModel();

            result.Copy(_expected);

            Assert.AreEqual(_expected.Id, result.Id);
            Assert.AreEqual(_expected.Name, result.Name);
            Assert.AreEqual(_expected.Date, result.Date);
        }
Example #3
0
 public void Setup()
 {
     _expected = new CopyToTestsModel()
     {
         Id      = 1,
         Name    = "Test Name",
         Date    = DateTime.Now,
         Strings = new List <string>()
         {
             "stringA",
             "stringB"
         }
     };
 }
Example #4
0
 public void Cleanup()
 {
     _expected = null;
 }