[longomatch] Fix typo.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix typo.
- Date: Fri, 17 Apr 2015 16:25:36 +0000 (UTC)
commit e986f845f91ba861ab0a5a648ef08854305d811d
Author: Julien Moutte <julien fluendo com>
Date: Mon Apr 13 18:31:16 2015 +0200
Fix typo.
LongoMatch.Core/Store/ActionLink.cs | 12 ++++--------
Tests/Core/Store/TestActionLink.cs | 2 +-
2 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/LongoMatch.Core/Store/ActionLink.cs b/LongoMatch.Core/Store/ActionLink.cs
index f6c61dc..50e83ad 100644
--- a/LongoMatch.Core/Store/ActionLink.cs
+++ b/LongoMatch.Core/Store/ActionLink.cs
@@ -41,6 +41,7 @@ namespace LongoMatch.Core.Store
/// <summary>
/// The source button of the link
/// </summary>
+ [JsonIgnore]
public DashboardButton SourceButton {
get;
set;
@@ -49,6 +50,7 @@ namespace LongoMatch.Core.Store
/// <summary>
/// A list of tags that needs to match in the source
/// </summary>
+ [JsonIgnore]
public List<Tag> SourceTags {
get;
set;
@@ -112,8 +114,8 @@ namespace LongoMatch.Core.Store
link.DestinationButton != DestinationButton) {
return false;
}
- if (!link.SourceTags.SequenceEqualSafe (SourceTags) ||
- !link.DestinationTags.SequenceEqualSafe (DestinationTags)) {
+ if (!link.SourceTags.SequenceEqual (SourceTags) ||
+ !link.DestinationTags.SequenceEqual (DestinationTags)) {
return false;
}
return true;
@@ -141,12 +143,6 @@ namespace LongoMatch.Core.Store
{
return !(l1 == l2);
}
-
- public override string ToString ()
- {
- return string.Format ("{0}->{1}", SourceButton != null ? SourceButton.Name : "empty",
- DestinationButton != null ? DestinationButton.Name : "empty");
- }
}
}
diff --git a/Tests/Core/Store/TestActionLink.cs b/Tests/Core/Store/TestActionLink.cs
index c561d3d..b5636e5 100644
--- a/Tests/Core/Store/TestActionLink.cs
+++ b/Tests/Core/Store/TestActionLink.cs
@@ -51,7 +51,7 @@ namespace Tests.Core.Store
link = CreateLink ();
ActionLink link2 = Utils.SerializeDeserialize (link);
- Assert.AreEqual (link.SourceTags, link2.SourceTags);
+ Assert.AreNotEqual (link.SourceTags, link2.SourceTags);
Assert.AreEqual (link.DestinationTags, link2.DestinationTags);
Assert.AreEqual (link.Action, link2.Action);
Assert.AreEqual (link.TeamAction, link2.TeamAction);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]