public void WhenDeserializeItWillReturnProjectRead()
        {
            var deserializerStub = new StubIXmlDeserializer();
            deserializerStub.DeserializeOf1String(contents => new ProjectSerializable(Project));

            var project = BuildProjectDeserializer(deserializerStub).Deserialize("C:\\TestFilePath");

            Assert.IsNotNull(project);
            Assert.AreEqual(Project.Name, project.Name);
            Assert.AreEqual(Project.Path, project.Path);
        }
        public void WhenProjectIsLoadedWillReturnItemsCollection()
        {
            var project = new StubIProject();
            var projectLoader = new StubIProjectLoader
            {
                CurrentProjectGet = () => project
            };

            var itemsCollection = new List<IItem> {new StubIItem()};
            var serializableItemCollection = new SerializableItemCollection(itemsCollection);

            var xmlDeserializer = new StubIXmlDeserializer();
            xmlDeserializer.DeserializeOf1String(s => serializableItemCollection);

            var deserializedCollection = SetupClassWithDefaults(projectLoader, xmlDeserializer).Deserialize();

            Assert.AreEqual(itemsCollection.Count, deserializedCollection.Count());
        }