Exemplo n.º 1
0
        public void FileCreationSetsContext()
        {
            var sut = new FileGivens(_ctx);

            sut.GivenThereIsAFileWithUrl("FileCreationSetsContext", "/testdoclib1/testfile2.txt");

            Assert.AreEqual("/testdoclib1/testfile2.txt", _ctx.LastFileServerRelativeUrl);
        }
Exemplo n.º 2
0
        public void FileCreationSetsContext()
        {
            var sut = new FileGivens(_ctx);

            sut.GivenThereIsAFileWithUrl("FileCreationSetsContext", "/testdoclib1/testfile2.txt");

            Assert.AreEqual("/testdoclib1/testfile2.txt", _ctx.LastFileServerRelativeUrl);
        }
Exemplo n.º 3
0
        public void FileCreationIsIdempotent()
        {
            var sut = new FileGivens(_ctx);

            sut.GivenThereIsAFileWithUrl("this is a test", "/testdoclib1/testfile1.txt");

            sut.GivenThereIsAFileWithUrl("this is a 2nd test", "/testdoclib1/testfile1.txt");

            var fileThens = new FileThens(_ctx);
            fileThens.TheFileContentsEqual("/testdoclib1/testfile1.txt", "this is a 2nd test");
        }
Exemplo n.º 4
0
        public void FileCreationIsIdempotent()
        {
            var sut = new FileGivens(_ctx);

            sut.GivenThereIsAFileWithUrl("this is a test", "/testdoclib1/testfile1.txt");

            sut.GivenThereIsAFileWithUrl("this is a 2nd test", "/testdoclib1/testfile1.txt");

            var fileThens = new FileThens(_ctx);

            fileThens.TheFileContentsEqual("/testdoclib1/testfile1.txt", "this is a 2nd test");
        }