public void CopyTo_WithEnumerables_ShouldNotCopyThem() { CopyToTestsModel result = new CopyToTestsModel(); result.Copy(_expected); Assert.IsNull(result.Strings); }
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); }
public void Setup() { _expected = new CopyToTestsModel() { Id = 1, Name = "Test Name", Date = DateTime.Now, Strings = new List <string>() { "stringA", "stringB" } }; }
public void Cleanup() { _expected = null; }