Beispiel #1
0
        public void AddExtensionsFromFile_BuilderIsNull_ArgNullException()
        {
            // arrange
            // act
            Action action = () =>
                            StitchingBuilderExtensions
                            .AddExtensionsFromFile(null, "foo");

            // assert
            Assert.Equal("builder",
                         Assert.Throws <ArgumentNullException>(action).ParamName);
        }
Beispiel #2
0
        public void AddExtensionsFromFile_SchemaIsNull_ArgumentNullException(
            string filePath)
        {
            // arrange
            var builder = new MockStitchingBuilder();

            // act
            Action action = () =>
                            StitchingBuilderExtensions
                            .AddExtensionsFromFile(builder, filePath);

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