public void ProfileCommittee_Method() { var call = new LawsLawApiCall(); Assert.False(call.Parameters.ContainsKey("profile_committee")); Assert.True(ReferenceEquals(call.ProfileCommittee(1), call)); Assert.Equal((long) 1, call.Parameters["profile_committee"]); }
public void ProfileCommittee_Method() { Assert.Throws<ArgumentNullException>(() => ILawsLawApiCallExtensions.ProfileCommittee(null, new Committee())); Assert.Throws<ArgumentNullException>(() => new LawsLawApiCall().ProfileCommittee(null)); var call = new LawsLawApiCall(); Assert.True(ReferenceEquals(call.ProfileCommittee(new Committee { Id = 1 }), call)); Assert.Equal((long) 1, call.Parameters["profile_committee"]); }