public void AddSchemaFromHttp_BuilderIsNull_ArgumentNullException() { // arrange // act Action action = () => StitchingBuilderExtensions .AddSchemaFromHttp(null, "foo"); // assert Assert.Equal("builder", Assert.Throws <ArgumentNullException>(action).ParamName); }
public void AddSchemaFromHttp_NameIsEmpty_ArgumentNullException() { // arrange var builder = new MockStitchingBuilder(); // act Action action = () => StitchingBuilderExtensions .AddSchemaFromHttp(builder, new NameString()); // assert Assert.Equal("name", Assert.Throws <ArgumentException>(action).ParamName); }