public void CloneTest() { CowSayBotConfig uut1 = new CowSayBotConfig(); uut1.ListenRegex = @"^!{%saycmd%} (?<msg>.+)"; uut1.ExeCommand = FakeExe; uut1.CowFileInfoList.CommandList["command"] = "name"; CowSayBotConfig uut2 = uut1.Clone(); Assert.AreNotSame(uut1.CowFileInfoList, uut2.CowFileInfoList); Assert.AreEqual(uut1.CowFileInfoList.CommandList.Count, uut2.CowFileInfoList.CommandList.Count); Assert.AreEqual(uut1.ListenRegex, uut2.ListenRegex); Assert.AreEqual(uut1.ExeCommand, uut2.ExeCommand); }