コード例 #1
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");
        }
コード例 #2
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");
        }