Ejemplo n.º 1
0
        public void SerializeProblem_FileDoesNotExist_ExpectValidMementoCreated()
        {
            //Arrange
            var filesystem        = new FakeFileSystem();
            var problemSerializer = new ProblemSerializer(filesystem);

            var modelProblem = new ModelProblem("test");
            var filePath     = "c:\\File.3dPoC";

            //Act
            problemSerializer.SerializeProblem(modelProblem, filePath);

            //Assert
            var memento = filesystem.TryGetProblemMemento();

            Assert.That(memento, Is.Not.Null);
        }