public void Name_Method() { Assert.Throws<ArgumentNullException>(() => new LawsLawApiCall().Name(null)); Assert.Throws<ArgumentException>(() => new LawsLawApiCall().Name(string.Empty)); var call = new LawsLawApiCall(); Assert.False(call.Parameters.ContainsKey("name")); Assert.True(ReferenceEquals(call.Name("name"), call)); Assert.Equal("name", call.Parameters["name"]); }