public void SetModel_LinkToNotCreatedYetButtonVM_LinksShareSourceDestinationButtonVMs() { // Arrange DashboardButtonCollectionVM vm = new DashboardButtonCollectionVM(); // Act vm.Model = model; // Assert Assert.AreEqual(B, A.ActionLinks [0].DestinationButton); Assert.AreEqual(C, B.ActionLinks [0].DestinationButton); }
public void RenameTag_TagsInstancesDifferent_UpdateAndShareSameInstanceBetweenLinkAndButton() { // Arrange DashboardButtonCollectionVM vm = new DashboardButtonCollectionVM(); // same values but different instance A.ActionLinks [0].DestinationTags [0] = new Tag("Success", "Test"); vm.Model = model; // Act Tag tagToUpdate = B.AnalysisEventType.Tags [0]; tagToUpdate.Value = "NewName"; // Assert Assert.AreEqual("NewName", A.ActionLinks [0].DestinationTags[0].Value); }