コード例 #1
0
        public void AddExtensionsFromString_BuilderIsNull_ArgNullException()
        {
            // arrange
            // act
            Action action = () =>
                            StitchingBuilderExtensions
                            .AddExtensionsFromString(null, "foo");

            // assert
            Assert.Equal("builder",
                         Assert.Throws <ArgumentNullException>(action).ParamName);
        }
コード例 #2
0
        public void AddExtensionsFromString_SchemaIsNull_ArgumentNullException(
            string schema)
        {
            // arrange
            var builder = new MockStitchingBuilder();

            // act
            Action action = () =>
                            StitchingBuilderExtensions
                            .AddExtensionsFromString(builder, schema);

            // assert
            Assert.Equal("extensions",
                         Assert.Throws <ArgumentException>(action).ParamName);
        }