mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
34 lines
810 B
C#
34 lines
810 B
C#
using System;
|
|
using NSubstitute;
|
|
using Octokit.Reactive;
|
|
using Xunit;
|
|
|
|
namespace Octokit.Tests.Reactive
|
|
{
|
|
public class ObservableFeedsClientTests
|
|
{
|
|
public class TheCtor
|
|
{
|
|
[Fact]
|
|
public void EnsuresNonNullArguments()
|
|
{
|
|
Assert.Throws<ArgumentNullException>(
|
|
() => new ObservableFeedsClient(null));
|
|
}
|
|
}
|
|
|
|
public class TheGetFeedsMethod
|
|
{
|
|
[Fact]
|
|
public void GetsFees()
|
|
{
|
|
var gitHubClient = Substitute.For<IGitHubClient>();
|
|
var client = new ObservableFeedsClient(gitHubClient);
|
|
|
|
client.GetFeeds();
|
|
|
|
gitHubClient.Activity.Feeds.Received().GetFeeds();
|
|
}
|
|
}
|
|
}
|
|
} |