Exemplo n.º 1
0
        public void ThrowsWhenProcessIdIsNotDefined()
        {
            string unknownProcessId = _fixture.Create<string>();
            Mesh mesh = new Mesh();

            ObjParsingService service = new ObjParsingService();

            Assert.That(() => service.ProcessLine(unknownProcessId, mesh), Throws.InvalidOperationException);
        }
Exemplo n.º 2
0
        public void ReturnWhenLineIsEmpty(string line)
        {
            Mesh mesh = new Mesh();

            ObjParsingService service = new ObjParsingService();
            service.ProcessLine(line, mesh);

            Mesh emptyMesh = new Mesh();
            Assert.That(mesh.MinVertex, Is.EqualTo(emptyMesh.MinVertex));
            Assert.That(mesh.MaxVertex, Is.EqualTo(emptyMesh.MaxVertex));
            Assert.That(mesh.Filename, Is.Null);
            Assert.That(mesh.SubMeshes, Is.Empty);
        }