public void ListCreationIsIdempotent() { var sut = new ListGivens(_ctx); sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "TestDocumentLibrary"); sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "TestDocumentLibrary"); }
public void TestInitialize() { // create a doc lib var listCreator = new ListGivens(_ctx); listCreator.GivenThereIsListCalled(Microsoft.SharePoint.Client.ListTemplateType.DocumentLibrary, "testdoclib1"); }
public void ListCreationSetsContext() { var sut = new ListGivens(_ctx); sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "TestDocumentLibrary"); Assert.AreEqual("TestDocumentLibrary", _ctx.LastListTitle); }
public void DocumentSetCreationIsIdempotent() { var sut = new ListGivens(_ctx); sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "BDLBS_2"); sut.GivenTheListHasADocumentSetCalled("BDLBS_DSB"); sut.GivenTheListHasADocumentSetCalled("BDLBS_DSB"); }
public void ListCreationThrowsWhenListAlreadyExistsButTypeIsWrong() { var sut = new ListGivens(_ctx); sut.GivenThereIsListCalled(ListTemplateType.GenericList, "TestGenericList"); bool thrown = false; try { sut.GivenThereIsListCalled(ListTemplateType.DocumentLibrary, "TestGenericList"); } catch { thrown = true; } Assert.IsTrue(thrown); }