public void Workspaces_AddNonNullItem_Success()
        {
            Collection <Workspace> collection = new ServiceDocument().Workspaces;

            collection.Add(new Workspace());
            Assert.Equal(1, collection.Count);
        }
        public void Workspaces_SetNullItem_ThrowsArgumentNullException()
        {
            Collection <Workspace> collection = new ServiceDocument().Workspaces;

            collection.Add(new Workspace());

            AssertExtensions.Throws <ArgumentNullException>("item", () => collection[0] = null);
        }
        public void Workspaces_SetNonNullItem_GetReturnsExpected()
        {
            Collection <Workspace> collection = new ServiceDocument().Workspaces;

            collection.Add(new Workspace());

            var newValue = new Workspace();

            collection[0] = newValue;
            Assert.Same(newValue, collection[0]);
        }