示例#1
0
        public void AddSchemaFromHttp_BuilderIsNull_ArgumentNullException()
        {
            // arrange
            // act
            Action action = () =>
                            StitchingBuilderExtensions
                            .AddSchemaFromHttp(null, "foo");

            // assert
            Assert.Equal("builder",
                         Assert.Throws <ArgumentNullException>(action).ParamName);
        }
示例#2
0
        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);
        }