Ejemplo n.º 1
0
        public void Constructor1_SetsRootPath()
        {
            var path     = Fixtures.CreateAnonymous <string>();
            var provider = new TestableMultipartFormDataStreamProvider(path);

            Assert.That(provider.RootPath, Is.EqualTo(path));
        }
Ejemplo n.º 2
0
        public void Constructor3_SetsBufferSize()
        {
            var path     = Fixtures.CreateAnonymous <string>();
            var size     = Fixtures.CreateAnonymous <int>();
            var provider = new TestableMultipartFormDataStreamProvider(path, size, null);

            Assert.That(provider.BufferSize, Is.EqualTo(size));
        }