Skip to content

Commit

Permalink
Merge pull request #141 from Inumedia/warnings-in-tests
Browse files Browse the repository at this point in the history
Clean warnings in test project
  • Loading branch information
Inumedia authored Nov 1, 2018
2 parents ec18013 + 70b0c21 commit 205ec77
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions SlackAPI.Tests/PostMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public void SimpleMessageDelivery()

// then
Assert.True(actual.ok, "Error while posting message to channel. ");
Assert.Equal(actual.message.text, "Hi there!");
Assert.Equal(actual.message.type, "message");
Assert.Equal("Hi there!", actual.message.text);
Assert.Equal("message", actual.message.type);
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion SlackAPI.Tests/Timestamp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void TestTimestampConversion(string originalTimestamp)
var newTimestamp = timestampDateTime.ToProperTimeStamp();

// Assert
Assert.Equal(double.Parse(originalTimestamp), double.Parse(originalTimestamp));
Assert.Equal(double.Parse(originalTimestamp), double.Parse(newTimestamp));
Assert.Equal(6, newTimestamp.Substring(newTimestamp.IndexOf(".") + 1).Length);
}
}
Expand Down
4 changes: 2 additions & 2 deletions SlackAPI.Tests/Update.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public void SimpleUpdate()

// then
Assert.True(actual.ok, "Error while posting message to channel. ");
Assert.Equal(actual.message.text, "[changed]");
Assert.Equal(actual.message.type, "message");
Assert.Equal("[changed]", actual.message.text);
Assert.Equal("message", actual.message.type);
}

private string PostedMessage(SlackSocketClient client)
Expand Down

0 comments on commit 205ec77

Please sign in to comment.