[longomatch] Fix typo in DestinationTags



commit 52cea1a9537a9eadbd4f2f863ef1909e6b2cc3cd
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Apr 14 01:40:43 2015 +0200

    Fix typo in DestinationTags

 LongoMatch.Core/Store/ActionLink.cs           |    6 +++---
 LongoMatch.Drawing/Widgets/DashboardCanvas.cs |    4 ++--
 Tests/Core/Store/TestActionLink.cs            |    6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/LongoMatch.Core/Store/ActionLink.cs b/LongoMatch.Core/Store/ActionLink.cs
index 600f0e8..f6c61dc 100644
--- a/LongoMatch.Core/Store/ActionLink.cs
+++ b/LongoMatch.Core/Store/ActionLink.cs
@@ -35,7 +35,7 @@ namespace LongoMatch.Core.Store
                        KeepPlayerTags = true;
                        TeamAction = TeamLinkAction.Keep;
                        SourceTags = new List<Tag> ();
-                       DestionationTags = new List<Tag> ();
+                       DestinationTags = new List<Tag> ();
                }
 
                /// <summary>
@@ -65,7 +65,7 @@ namespace LongoMatch.Core.Store
                /// <summary>
                /// A list of tags that needs to be set in the destination
                /// </summary>
-               public List<Tag> DestionationTags {
+               public List<Tag> DestinationTags {
                        get;
                        set;
                }
@@ -113,7 +113,7 @@ namespace LongoMatch.Core.Store
                                return false;
                        }
                        if (!link.SourceTags.SequenceEqualSafe (SourceTags) ||
-                           !link.DestionationTags.SequenceEqualSafe (DestionationTags)) {
+                           !link.DestinationTags.SequenceEqualSafe (DestinationTags)) {
                                return false;
                        }
                        return true;
diff --git a/LongoMatch.Drawing/Widgets/DashboardCanvas.cs b/LongoMatch.Drawing/Widgets/DashboardCanvas.cs
index a750ef3..6db9e40 100644
--- a/LongoMatch.Drawing/Widgets/DashboardCanvas.cs
+++ b/LongoMatch.Drawing/Widgets/DashboardCanvas.cs
@@ -301,7 +301,7 @@ namespace LongoMatch.Drawing.Widgets
                                if (destAnchor != null) {
                                        ActionLink link = movingLink.Link;
                                        link.DestinationButton = destAnchor.Button.Button;
-                                       link.DestionationTags = destAnchor.Tags;
+                                       link.DestinationTags = destAnchor.Tags;
                                        link.SourceButton.ActionLinks.Add (link);
                                        movingLink.Destination = destAnchor;
                                        destAnchor.Highlighted = false;
@@ -414,7 +414,7 @@ namespace LongoMatch.Drawing.Widgets
                                foreach (ActionLink link in buttonObject.Button.ActionLinks) {
                                        LinkAnchorObject sourceAnchor = buttonObject.GetAnchor 
(link.SourceTags);
                                        LinkAnchorObject destAnchor = buttonsDict [link.DestinationButton].
-                                               GetAnchor (link.DestionationTags);
+                                               GetAnchor (link.DestinationTags);
                                        ActionLinkObject linkObject = new ActionLinkObject (sourceAnchor,
                                                                              destAnchor, link);
                                        link.SourceButton = buttonObject.Button;
diff --git a/Tests/Core/Store/TestActionLink.cs b/Tests/Core/Store/TestActionLink.cs
index 398b098..c561d3d 100644
--- a/Tests/Core/Store/TestActionLink.cs
+++ b/Tests/Core/Store/TestActionLink.cs
@@ -33,7 +33,7 @@ namespace Tests.Core.Store
                        link.SourceButton = new DashboardButton ();
                        link.SourceTags = new List<Tag> { new Tag ("tag1") };
                        link.DestinationButton = new DashboardButton ();
-                       link.DestionationTags = new List<Tag> { new Tag ("tag2") };
+                       link.DestinationTags = new List<Tag> { new Tag ("tag2") };
                        link.Action = LinkAction.Toggle;
                        link.TeamAction = TeamLinkAction.Invert;
                        link.KeepCommonTags = false;
@@ -52,7 +52,7 @@ namespace Tests.Core.Store
 
                        ActionLink link2 = Utils.SerializeDeserialize (link);
                        Assert.AreEqual (link.SourceTags, link2.SourceTags);
-                       Assert.AreEqual (link.DestionationTags, link2.DestionationTags);
+                       Assert.AreEqual (link.DestinationTags, link2.DestinationTags);
                        Assert.AreEqual (link.Action, link2.Action);
                        Assert.AreEqual (link.TeamAction, link2.TeamAction);
                        Assert.AreEqual (link.KeepCommonTags, link2.KeepCommonTags);
@@ -72,7 +72,7 @@ namespace Tests.Core.Store
                        Assert.AreNotEqual (link, link2);
                        link2.SourceTags = new List<Tag> { new Tag ("tag1") }; 
                        Assert.AreNotEqual (link, link2);
-                       link2.DestionationTags = new List<Tag> { new Tag ("tag2") }; 
+                       link2.DestinationTags = new List<Tag> { new Tag ("tag2") }; 
                        Assert.IsTrue (link == link2);
                        Assert.IsTrue (link.Equals (link2));
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]